Skip to content

Commit

Permalink
Update unit test pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
ablakley-r7 committed Jan 6, 2025
1 parent 8953966 commit 311aff2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/palo_alto_cortex_xdr/unit_test/test_monitor_alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def setUp(self) -> None:
"starting",
{},
TaskUtil.load_expected("monitor_alerts"),
True,
False,
"monitor_alerts",
STUB_STATE_MORE_PAGES,
200,
Expand All @@ -87,7 +87,7 @@ def setUp(self) -> None:
"next_page",
STUB_STATE_MORE_PAGES.copy(),
TaskUtil.load_expected("monitor_alert_two"),
True,
False,
"monitor_alerts_two",
STUB_STATE_EXPECTED_SECOND_PAGE,
200,
Expand Down Expand Up @@ -250,7 +250,7 @@ def test_monitor_alerts_dedupe(

self.assertEqual(status_code, expected_status_code)
self.assertEqual(input_state, state)
self.assertEqual(has_more_pages, True)
self.assertEqual(has_more_pages, False)
self.assertEqual(output, [])

@parameterized.expand(
Expand Down Expand Up @@ -353,4 +353,4 @@ def test_monitor_alerts_custom_config(
self.assertEqual(output, expected_output)
self.assertEqual(status_code, expected_status_code)
self.assertEqual(input_state, state)
self.assertEqual(has_more_pages, True)
self.assertEqual(has_more_pages, False)

0 comments on commit 311aff2

Please sign in to comment.