Skip to content

Commit 95d45bb

Browse files
committed
re-add fixture decorators
1 parent d4a1324 commit 95d45bb

5 files changed

Lines changed: 5 additions & 1 deletion

File tree

python/lib/sift_client/_tests/resources/test_calculated_channels.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def test_calculated_channel(calculated_channels_api_sync):
5252
return calculated_channels[0]
5353

5454

55+
@pytest.fixture
5556
def new_calculated_channel(calculated_channels_api_sync, sift_client):
5657
"""Create a test calculated channel for update tests."""
5758
from datetime import datetime, timezone

python/lib/sift_client/_tests/resources/test_ingestion.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def test_client_binding(sift_client):
2929
assert sift_client.async_.ingestion
3030

3131

32+
@pytest.fixture
3233
def test_run(sift_client: SiftClient):
3334
"""Create a test run for ingestion tests."""
3435
run = sift_client.runs.create(

python/lib/sift_client/_tests/resources/test_results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def test_archive_and_delete_test_report(self, sift_client):
321321
assert deleted_report is None # Shouldn't reach here so error if we get something.
322322
except aiogrpc.AioRpcError as e:
323323
self.test_reports.pop("basic_test_report")
324-
assert e.code() == grpc.StatusCode.NOT_FOUND # noqa: PT017
324+
assert e.code() == grpc.StatusCode.NOT_FOUND # noqa: PT017
325325

326326
def test_import_test_report(self, sift_client):
327327
# Import a test report from a file

python/lib/sift_client/_tests/resources/test_rules.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def test_rule(rules_api_sync):
5454
return rules[0]
5555

5656

57+
@pytest.fixture
5758
def new_rule(rules_api_sync, sift_client):
5859
"""Create a test rule for update tests."""
5960
from datetime import datetime, timezone

python/lib/sift_client/_tests/resources/test_runs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def test_run(runs_api_sync):
4646
return runs[0]
4747

4848

49+
@pytest.fixture
4950
def new_run(runs_api_sync):
5051
"""Create a test run for update tests."""
5152
run_name = f"test_run_update_{datetime.now(timezone.utc).isoformat()}"

0 commit comments

Comments
 (0)