diff --git a/.github/ruff.toml b/.github/ruff.toml index 440d8ea7..9407253d 100644 --- a/.github/ruff.toml +++ b/.github/ruff.toml @@ -60,3 +60,4 @@ exclude = [ "tests/test_dotnet_features.py" = ["F401", "F811"] "tests/test_result_document.py" = ["F401", "F811"] "tests/test_dotnetfile_features.py" = ["F401", "F811"] +"tests/test_static_freeze.py" = ["F401"] diff --git a/tests/test_static_freeze.py b/tests/test_static_freeze.py index d0983f33..60a806a1 100644 --- a/tests/test_static_freeze.py +++ b/tests/test_static_freeze.py @@ -155,6 +155,13 @@ def test_serialize_features(): roundtrip_feature(capa.features.insn.Property("System.IO.FileInfo::Length")) +def test_freeze_sample(tmpdir, z9324d_extractor): + # tmpdir fixture handles cleanup + o = tmpdir.mkdir("capa").join("test.frz").strpath + path = z9324d_extractor.path + assert capa.features.freeze.main([path, o, "-v"]) == 0 + + @pytest.mark.parametrize( "extractor", [ @@ -173,10 +180,3 @@ def test_freeze_load_sample(tmpdir, request, extractor): null_extractor = capa.features.freeze.load(f.read()) compare_extractors(extractor, null_extractor) - - -def test_freeze_sample(tmpdir, z9324d_extractor): - # tmpdir fixture handles cleanup - o = tmpdir.mkdir("capa").join("test.frz").strpath - path = z9324d_extractor.path - assert capa.features.freeze.main([path, o, "-v"]) == 0