Skip to content

Commit

Permalink
safer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstinalin committed Jan 10, 2025
1 parent 5034b0f commit cde026a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/olympia/addons/tests/test_indexers.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,10 +515,8 @@ def test_extract_promoted(self):
extracted = self._extract()
assert extracted['promoted']
assert RECOMMENDED.id in extracted['promoted']['group_ids']
assert extracted['promoted']['approved_for_apps'] == [
amo.FIREFOX.id,
amo.ANDROID.id,
]
assert amo.FIREFOX.id in extracted['promoted']['approved_for_apps']
assert amo.ANDROID.id in extracted['promoted']['approved_for_apps']
assert extracted['is_recommended'] is True

# Specific application.
Expand All @@ -544,10 +542,8 @@ def test_extract_promoted(self):
extracted = self._extract()
assert extracted['promoted']
assert RECOMMENDED.id in extracted['promoted']['group_ids']
assert extracted['promoted']['approved_for_apps'] == [
amo.FIREFOX.id,
amo.ANDROID.id,
]
assert amo.FIREFOX.id in extracted['promoted']['approved_for_apps']
assert amo.ANDROID.id in extracted['promoted']['approved_for_apps']
assert extracted['is_recommended'] is True

@mock.patch('olympia.addons.indexers.create_chunked_tasks_signatures')
Expand Down

0 comments on commit cde026a

Please sign in to comment.