fix: resolve CI type annotation issues
Some checks failed
CI / test (push) Has been cancelled
CI / build (push) Has been cancelled

This commit is contained in:
2026-02-02 12:56:06 +00:00
parent e6b3428ba6
commit 068f2bc8ca

16
tests/test_parser.py Normal file
View File

@@ -0,0 +1,16 @@
from pathlib import Path
from requirements_to_gherkin.parser import RequirementsParser
def test_parse_file(tmp_path):
parser = RequirementsParser()
test_file = tmp_path / "test.txt"
test_file.write_text("Test requirements")
result = parser.parse_file(test_file)
assert isinstance(result, dict)
def test_parse_text():
parser = RequirementsParser()
result = parser.parse_text("Test requirements")
assert isinstance(result, dict)