aboutsummaryrefslogtreecommitdiff
path: root/test_utils/managers/network
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/network
parentc6f7ad8baaa8e0e22dfcefc763f4065faf6de507 (diff)
downloadgeneralresearch-6b4f8d6b8700a65bdf74beb3d95c969a81464a56.tar.gz
generalresearch-6b4f8d6b8700a65bdf74beb3d95c969a81464a56.zip
build ignore, py-utils replace, typing with Ruff
Diffstat (limited to 'test_utils/managers/network')
-rw-r--r--test_utils/managers/network/conftest.py4
1 files changed, 2 insertions, 2 deletions
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