mirror of
https://github.com/mandiant/capa.git
synced 2026-03-12 21:23:12 -07:00
style: auto-format with black and isort
This commit is contained in:
@@ -176,8 +176,7 @@ def test_get_rules_skips_empty_yaml(tmp_path):
|
|||||||
# get_rules should skip empty files with a warning instead of raising (issue #2900)
|
# get_rules should skip empty files with a warning instead of raising (issue #2900)
|
||||||
(tmp_path / "empty.yml").write_bytes(b"")
|
(tmp_path / "empty.yml").write_bytes(b"")
|
||||||
(tmp_path / "valid.yml").write_text(
|
(tmp_path / "valid.yml").write_text(
|
||||||
textwrap.dedent(
|
textwrap.dedent("""
|
||||||
"""
|
|
||||||
rule:
|
rule:
|
||||||
meta:
|
meta:
|
||||||
name: test rule
|
name: test rule
|
||||||
@@ -186,8 +185,7 @@ def test_get_rules_skips_empty_yaml(tmp_path):
|
|||||||
dynamic: process
|
dynamic: process
|
||||||
features:
|
features:
|
||||||
- api: CreateFile
|
- api: CreateFile
|
||||||
"""
|
"""),
|
||||||
),
|
|
||||||
encoding="utf-8",
|
encoding="utf-8",
|
||||||
)
|
)
|
||||||
# empty.yml is skipped with a warning; valid.yml is loaded normally
|
# empty.yml is skipped with a warning; valid.yml is loaded normally
|
||||||
|
|||||||
Reference in New Issue
Block a user