aboutsummaryrefslogtreecommitdiff
path: root/test_utils/managers
diff options
context:
space:
mode:
authorMax Nanis2026-08-18 13:14:45 -0700
committerMax Nanis2026-08-18 13:14:45 -0700
commit6b4f8d6b8700a65bdf74beb3d95c969a81464a56 (patch)
tree09c0b32c8915f4ffa5c5e02222c49cbf591f8588 /test_utils/managers
parentc6f7ad8baaa8e0e22dfcefc763f4065faf6de507 (diff)
downloadgeneralresearch-6b4f8d6b8700a65bdf74beb3d95c969a81464a56.tar.gz
generalresearch-6b4f8d6b8700a65bdf74beb3d95c969a81464a56.zip
build ignore, py-utils replace, typing with Ruff
Diffstat (limited to 'test_utils/managers')
-rw-r--r--test_utils/managers/ledger/conftest.py3
-rw-r--r--test_utils/managers/network/conftest.py4
2 files changed, 3 insertions, 4 deletions
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