From 9f714f1277022eede7fbd9b698362aa2036b7750 Mon Sep 17 00:00:00 2001 From: Wagga <6437862+wagga40@users.noreply.github.com> Date: Fri, 29 Dec 2023 22:08:53 +0100 Subject: [PATCH] Update tests --- tests/test_backend_sqlite.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_backend_sqlite.py b/tests/test_backend_sqlite.py index 2fb8139..2e04f6a 100644 --- a/tests/test_backend_sqlite.py +++ b/tests/test_backend_sqlite.py @@ -242,7 +242,8 @@ def test_sqlite_fts_keywords_num(sqlite_backend : sqliteBackend): assert str(e.value) == "Value-only number expressions (i.e Full Text Search or 'keywords' search) are not supported by the backend." def test_sqlite_zircolite_output(sqlite_backend : sqliteBackend): - rule = list(SigmaCollection.from_yaml(""" + rule = SigmaCollection.from_yaml( + r""" title: Test status: test logsource: @@ -252,7 +253,7 @@ def test_sqlite_zircolite_output(sqlite_backend : sqliteBackend): sel: fieldA: value condition: sel - """))[0] + """) assert sqlite_backend.convert(rule, "zircolite") == '[{"title": "Test", "id": "", "status": "test", "description": "", "author": "", "tags": [], "falsepositives": [], "level": "", "rule": ["SELECT * FROM logs WHERE fieldA=\'value\'"], "filename": ""}]' # TODO: implement tests for all backend features that don't belong to the base class defaults, e.g. features that were