Skip to content

Commit

Permalink
fixed flake8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
LuptonM committed Mar 10, 2023
1 parent 95e041d commit 9372708
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/great_international/test_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def fdi_investment_type():
return InvestmentTypeFactory(
name=settings.FOREIGN_DIRECT_INVESTMENT_SNIPPET_LABEL_DEFAULT
)



@pytest.fixture
def freeport_investment_type():
return InvestmentTypeFactory(
Expand Down Expand Up @@ -1625,22 +1626,20 @@ def test_foreign_direct_investment_form_sucess_page_serializer(
@pytest.mark.django_db
def test_freeport_data(international_root_page, freeport_investment_type, non_fdi_investment_type):


InvestmentOpportunityPageFactory.create_batch(
2,
parent=international_root_page,
investment_type= freeport_investment_type
investment_type=freeport_investment_type
)

InvestmentOpportunityPageFactory.create_batch(
2,
parent=international_root_page,
investment_type=non_fdi_investment_type
)


opportunity = InternationalArticlePageFactory(
type_of_article ='Freeport landing'
type_of_article='Freeport landing'
)

freeport_data = InternationalArticlePageSerializer(
Expand All @@ -1649,6 +1648,7 @@ def test_freeport_data(international_root_page, freeport_investment_type, non_fd

assert len(freeport_data) == 2


@pytest.mark.django_db
def test_freeport_data_has_no_results(international_root_page, non_fdi_investment_type):
InvestmentOpportunityPageFactory.create_batch(
Expand All @@ -1658,11 +1658,11 @@ def test_freeport_data_has_no_results(international_root_page, non_fdi_investmen
)

opportunity = InternationalArticlePageFactory(
type_of_article ='Freeport landing'
type_of_article='Freeport landing'
)

freeport_data = InternationalArticlePageSerializer(
instance=opportunity,
).get_freeport_data(instance=opportunity)

assert freeport_data == []
assert freeport_data == []

0 comments on commit 9372708

Please sign in to comment.