Skip to content

Commit

Permalink
add missing test skeletons
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinMind committed Nov 20, 2024
1 parent ea50682 commit 9ff8ccc
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions src/olympia/blocklist/tests/test_cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,57 @@ def test_pass_correct_arguments_to_upload_filter(self):
upload_stash=False,
)

def test_filter_updated_for_soft_blocked_when_switch_active(self):
"""
Test that the filter is updated for SOFT_BLOCKED block type when there are
sufficient changes and the 'enable-soft-blocking' switch is active.
"""
pass

def test_stash_uploaded_for_soft_blocked_changes_when_below_threshold(self):
"""
Test that a stash is uploaded when there are changes in SOFT_BLOCKED items
below the threshold and the 'enable-soft-blocking' switch is active.
"""
pass

def test_filters_updated_for_all_block_types(self):
"""
Test that filters are updated for both BLOCKED and SOFT_BLOCKED block types
when there are sufficient changes exceeding the threshold for both, and the
'enable-soft-blocking' switch is active.
"""
pass

def test_stash_uploaded_when_previous_filter_is_none(self):
"""
Test that a stash is generated and uploaded when there is no previous filter
and there are changes in blocks.
"""
pass

def test_no_update_when_no_changes_in_blocks(self):
"""
Test that no update occurs and mlbf.delete() is called when there are
no changes in blocks for any block type.
"""
pass

def test_filter_updated_for_blocked_when_soft_blocking_disabled(self):
"""
Test that the filter is updated for BLOCKED block type when there are
sufficient changes, even if the 'enable-soft-blocking' switch is inactive.
"""
pass

def test_upload_filter_delay_called_with_correct_arguments(self):
"""
Test that upload_filter.delay is called with the correct filter_list and
upload_stash arguments when both base_filters_to_update and update_stash
are involved.
"""
pass


class TestTimeMethods(TestCase):
@freeze_time('2024-10-10 12:34:56')
Expand Down

0 comments on commit 9ff8ccc

Please sign in to comment.