proto: add type stubs for generate schema

This commit is contained in:
Willi Ballenthin
2023-02-14 10:57:43 +01:00
parent b6e607f60e
commit c197fd5086
7 changed files with 1523 additions and 6 deletions

View File

@@ -1101,3 +1101,13 @@ def _0953c_dotnetfile_extractor():
@pytest.fixture
def _039a6_dotnetfile_extractor():
return get_dnfile_extractor(get_data_path_by_name("_039a6"))
@pytest.fixture
def pma0101_rd():
path = os.path.join(CD, "data", "Practical Malware Analysis Lab 01-01.dll.json")
with open(path, "rb") as f:
buf = f.read()
src = buf.decode("utf-8")
return capa.render.result_document.ResultDocument.parse_raw(src)