From 98b3bffeb06c945d3fa2908d839c01ab47777f5d Mon Sep 17 00:00:00 2001 From: Thomas Patzke Date: Tue, 14 Nov 2023 22:13:47 +0100 Subject: [PATCH] Fixed tests --- tests/files/valid/sigma_rule.yml | 1 + tests/test_check.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/files/valid/sigma_rule.yml b/tests/files/valid/sigma_rule.yml index 85f937e..40df27b 100644 --- a/tests/files/valid/sigma_rule.yml +++ b/tests/files/valid/sigma_rule.yml @@ -1,5 +1,6 @@ title: Test rule id: 5013332f-8a70-4e04-bcc1-06a98a2cca2e +status: stable level: high logsource: category: process_creation diff --git a/tests/test_check.py b/tests/test_check.py index f3e0d3f..02a091e 100644 --- a/tests/test_check.py +++ b/tests/test_check.py @@ -42,7 +42,7 @@ def test_check_with_issues(): cli = CliRunner() result = cli.invoke(check, ["tests/files/issues"]) assert result.exit_code == 0 - assert "4 issues" in result.stdout + assert "11 issues" in result.stdout def test_check_with_issues_exclusions(): @@ -56,7 +56,7 @@ def test_check_with_issues_exclusions(): ], ) assert result.exit_code == 0 - assert "2 issues" in result.stdout + assert "9 issues" in result.stdout def test_check_fail_on_issues():