Skip to content

Commit c635619

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 2f7cf10 commit c635619

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

tests/waterdata_filters_test.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -446,17 +446,14 @@ def fake_construct_api_requests(**kwargs):
446446
sent_filters.append(kwargs.get("filter"))
447447
return _fake_prepared_request()
448448

449-
with (
450-
mock.patch(
451-
"dataretrieval.waterdata.utils._construct_api_requests",
452-
side_effect=fake_construct_api_requests,
453-
),
454-
mock.patch(
455-
"dataretrieval.waterdata.utils._walk_pages",
456-
return_value=(
457-
pd.DataFrame({"id": ["row-1"], "value": [1]}),
458-
_fake_response(),
459-
),
449+
with mock.patch(
450+
"dataretrieval.waterdata.utils._construct_api_requests",
451+
side_effect=fake_construct_api_requests,
452+
), mock.patch(
453+
"dataretrieval.waterdata.utils._walk_pages",
454+
return_value=(
455+
pd.DataFrame({"id": ["row-1"], "value": [1]}),
456+
_fake_response(),
460457
),
461458
):
462459
get_continuous(

0 commit comments

Comments
 (0)