From 6b4f8d6b8700a65bdf74beb3d95c969a81464a56 Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Tue, 18 Aug 2026 13:14:45 -0700 Subject: build ignore, py-utils replace, typing with Ruff --- test_utils/managers/ledger/conftest.py | 3 +-- test_utils/managers/network/conftest.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'test_utils/managers') diff --git a/test_utils/managers/ledger/conftest.py b/test_utils/managers/ledger/conftest.py index c66ee4e..0aa6cb3 100644 --- a/test_utils/managers/ledger/conftest.py +++ b/test_utils/managers/ledger/conftest.py @@ -586,7 +586,6 @@ def session_with_tx_factory( ) -> Callable[..., "Session"]: from generalresearch.models.thl.session import ( - Session, Status, StatusCode1, ) @@ -661,7 +660,7 @@ def adj_to_fail_with_tx_factory( # This is defined in `thl-grpc/thl/user_quality_history/recons.py:150` # so we can't use it as part of this test anyway to add rows to the # thl_taskadjustment table anyway.. until we created a - # TaskAdjustment Manager to put into py-utils! + # TaskAdjustment Manager to put into generalresearch! # create_task_adjustment_event( # wall, diff --git a/test_utils/managers/network/conftest.py b/test_utils/managers/network/conftest.py index 979dd63..c699c93 100644 --- a/test_utils/managers/network/conftest.py +++ b/test_utils/managers/network/conftest.py @@ -43,7 +43,7 @@ def toolrun_manager(thl_web_rw) -> ToolRunManager: @pytest.fixture(scope="session") def nmap_raw_output(request) -> str: fp = os.path.join(request.config.rootpath, "data/nmaprun1.xml") - with open(fp, "r") as f: + with open(fp) as f: data = f.read() return data @@ -107,7 +107,7 @@ def rdns_run(rdns_result, scan_group_id): @pytest.fixture(scope="session") def mtr_raw_output(request): fp = os.path.join(request.config.rootpath, "data/mtr_fatbeam.json") - with open(fp, "r") as f: + with open(fp) as f: data = f.read() return data -- cgit v1.2.3