fix: resolve CI type annotation issues
This commit is contained in:
16
tests/test_parser.py
Normal file
16
tests/test_parser.py
Normal 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)
|
||||||
Reference in New Issue
Block a user