mirror of
https://github.com/mandiant/capa.git
synced 2026-01-06 17:53:59 -08:00
tests: simplify loading of result document from file
This commit is contained in:
@@ -1109,10 +1109,7 @@ def _039a6_dotnetfile_extractor():
|
||||
|
||||
|
||||
def get_result_doc(path):
|
||||
with open(path, "rb") as f:
|
||||
buf = f.read()
|
||||
src = buf.decode("utf-8")
|
||||
return capa.render.result_document.ResultDocument.parse_raw(src)
|
||||
return capa.render.result_document.ResultDocument.parse_file(path)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
||||
Reference in New Issue
Block a user