mirror of
https://github.com/mandiant/capa.git
synced 2025-12-21 23:00:29 -08:00
move capa/features/__init__.py logic to common.py
also cleanup imports across the board, thanks to pylance.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
import json
|
||||
import textwrap
|
||||
|
||||
import fixtures
|
||||
from fixtures import *
|
||||
|
||||
import capa.main
|
||||
@@ -362,7 +363,7 @@ def test_not_render_rules_also_matched(z9324d_extractor, capsys):
|
||||
|
||||
def test_backend_option(capsys):
|
||||
# tests that main works with different backends
|
||||
path = get_data_path_by_name("pma16-01")
|
||||
path = fixtures.get_data_path_by_name("pma16-01")
|
||||
assert capa.main.main([path, "-j", "-b", capa.main.BACKEND_VIV]) == 0
|
||||
std = capsys.readouterr()
|
||||
std_json = json.loads(std.out)
|
||||
|
||||
Reference in New Issue
Block a user