From 27a661a50cd606c66e65bc138ae1eb7fb1374a24 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Thu, 29 Jan 2026 21:28:07 +0000 Subject: [PATCH] Add remaining test files --- tests/test_validators/test_best_practices.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/test_validators/test_best_practices.py diff --git a/tests/test_validators/test_best_practices.py b/tests/test_validators/test_best_practices.py new file mode 100644 index 0000000..ec09698 --- /dev/null +++ b/tests/test_validators/test_best_practices.py @@ -0,0 +1,14 @@ +import pytest +from src.validators import BestPracticesValidator + +class TestBestPracticesValidator: + def setup_method(self): + self.validator = BestPracticesValidator() + + def test_missing_shebang(self): + findings = self.validator.check("echo hello") + assert len(findings) >= 1 + + def test_has_shebang(self): + findings = self.validator.check("#!/bin/bash\necho hello") + assert len(findings) == 0