Add remaining test files

This commit is contained in:
2026-01-29 21:28:07 +00:00
parent 6c0242fcbb
commit 27a661a50c

View File

@@ -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