Loading tests/test_findings_parsing.py +1 −6 Original line number Original line Diff line number Diff line Loading @@ -29,16 +29,11 @@ def find_lynis_test_files() -> List[str]: return answer return answer @pytest.fixture(autouse=True) def skip_if_no_pwndoc(): if PWNDOC_DANGER_OVERRIDE: yield else: pytest.skip("PWNDOC_DANGER_OVERRIDE must be allowed to enable testing of interaction with PwnDoc") def find_all_test_files() -> List[str]: def find_all_test_files() -> List[str]: return find_nessus_test_files() + find_burp_test_files() + find_lynis_test_files() return find_nessus_test_files() + find_burp_test_files() + find_lynis_test_files() @pytest.mark.skipif(not PWNDOC_DANGER_OVERRIDE, reason="PWNDOC_DANGER_OVERRIDE must be allowed to enable testing of interaction with PwnDoc") class TestFindingParsing: class TestFindingParsing: @test_steps('PwnDoc Templates, Scan2Report, JSON', 'Upload to PwnDoc Audit', 'Download PwnDoc audit report') @test_steps('PwnDoc Templates, Scan2Report, JSON', 'Upload to PwnDoc Audit', 'Download PwnDoc audit report') Loading Loading
tests/test_findings_parsing.py +1 −6 Original line number Original line Diff line number Diff line Loading @@ -29,16 +29,11 @@ def find_lynis_test_files() -> List[str]: return answer return answer @pytest.fixture(autouse=True) def skip_if_no_pwndoc(): if PWNDOC_DANGER_OVERRIDE: yield else: pytest.skip("PWNDOC_DANGER_OVERRIDE must be allowed to enable testing of interaction with PwnDoc") def find_all_test_files() -> List[str]: def find_all_test_files() -> List[str]: return find_nessus_test_files() + find_burp_test_files() + find_lynis_test_files() return find_nessus_test_files() + find_burp_test_files() + find_lynis_test_files() @pytest.mark.skipif(not PWNDOC_DANGER_OVERRIDE, reason="PWNDOC_DANGER_OVERRIDE must be allowed to enable testing of interaction with PwnDoc") class TestFindingParsing: class TestFindingParsing: @test_steps('PwnDoc Templates, Scan2Report, JSON', 'Upload to PwnDoc Audit', 'Download PwnDoc audit report') @test_steps('PwnDoc Templates, Scan2Report, JSON', 'Upload to PwnDoc Audit', 'Download PwnDoc audit report') Loading