fix: resolve CI type annotation issues
Some checks failed
CI / test (push) Failing after 4m59s
CI / build (push) Has been skipped

- Replaced deprecated typing.List/Dict/Tuple with native list/dict/tuple
- Fixed trailing whitespace issues
- Fixed blank line whitespace issues
- Removed unused variables and imports
- Applied black formatting
This commit is contained in:
2026-02-02 12:45:13 +00:00
parent 06614bb7cd
commit ee61ec0e32

View File

@@ -66,11 +66,15 @@ class TestCLI:
output_file = tmp_path / "output.feature"
result = runner.invoke(convert, [
str(req_file),
"--output", str(output_file),
"--no-validate",
])
result = runner.invoke(
convert,
[
str(req_file),
"--output",
str(output_file),
"--no-validate",
],
)
assert result.exit_code == 0
assert output_file.exists()
@@ -84,11 +88,15 @@ class TestCLI:
req_file.write_text("As a user, I want to login")
for framework in ["cucumber", "behave", "pytest-bdd"]:
result = runner.invoke(convert, [
str(req_file),
"--framework", framework,
"--no-validate",
])
result = runner.invoke(
convert,
[
str(req_file),
"--framework",
framework,
"--no-validate",
],
)
assert result.exit_code == 0, f"Failed for framework: {framework}"
@@ -111,11 +119,14 @@ class TestCLI:
req_file = tmp_path / "requirements.txt"
req_file.write_text("As a user, I want to do something with some data")
result = runner.invoke(convert, [
str(req_file),
"--ambiguity-check",
"--no-validate",
])
result = runner.invoke(
convert,
[
str(req_file),
"--ambiguity-check",
"--no-validate",
],
)
assert result.exit_code == 0