From db32d9048023612fdb2618b483fea0fb55b7740c Mon Sep 17 00:00:00 2001 From: Aayush Goel <81844215+Aayush-Goel-04@users.noreply.github.com> Date: Mon, 16 Oct 2023 16:35:30 +0530 Subject: [PATCH] tests updated --- .github/pyinstaller/pyinstaller.spec | 1 + tests/test_rules.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/pyinstaller/pyinstaller.spec b/.github/pyinstaller/pyinstaller.spec index 7d90e9668..da3943be6 100644 --- a/.github/pyinstaller/pyinstaller.spec +++ b/.github/pyinstaller/pyinstaller.spec @@ -17,6 +17,7 @@ a = Analysis( # when invoking pyinstaller from the project root, # this gets invoked from the directory of the spec file, # i.e. ./.github/pyinstaller + ("../../assets", "assets"), ("../../rules", "rules"), ("../../sigs", "sigs"), ("../../cache", "cache"), diff --git a/tests/test_rules.py b/tests/test_rules.py index 965c70936..a8f3f8e38 100644 --- a/tests/test_rules.py +++ b/tests/test_rules.py @@ -1026,8 +1026,7 @@ def test_translate_com_features(): capa.features.common.Bytes(b"[\x94\x18\xe0\x86\xaa\x08@\x9b\xd4gw\xa1\xe4\x0c\x11", f"IID_{com_name} as bytes"), capa.features.common.StringFactory("e018945b-aa86-4008-9bd4-6777a1e40c11", f"IID_{com_name} as GUID string"), ] - for child in r.statement.get_children(): - assert child in com_features + assert set(com_features) == set(r.statement.get_children()) def test_invalid_com_features():