Skip to content

Commit

Permalink
renamed page variable
Browse files Browse the repository at this point in the history
  • Loading branch information
LuptonM committed Mar 10, 2023
1 parent 9372708 commit b037c26
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/great_international/test_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1638,13 +1638,13 @@ def test_freeport_data(international_root_page, freeport_investment_type, non_fd
investment_type=non_fdi_investment_type
)

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

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

assert len(freeport_data) == 2

Expand All @@ -1657,12 +1657,12 @@ def test_freeport_data_has_no_results(international_root_page, non_fdi_investmen
investment_type=non_fdi_investment_type
)

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

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

assert freeport_data == []

0 comments on commit b037c26

Please sign in to comment.