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/network/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test_utils/managers/network') 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