fix: resolve CI type annotation issues
- 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:
@@ -66,11 +66,15 @@ class TestCLI:
|
|||||||
|
|
||||||
output_file = tmp_path / "output.feature"
|
output_file = tmp_path / "output.feature"
|
||||||
|
|
||||||
result = runner.invoke(convert, [
|
result = runner.invoke(
|
||||||
|
convert,
|
||||||
|
[
|
||||||
str(req_file),
|
str(req_file),
|
||||||
"--output", str(output_file),
|
"--output",
|
||||||
|
str(output_file),
|
||||||
"--no-validate",
|
"--no-validate",
|
||||||
])
|
],
|
||||||
|
)
|
||||||
|
|
||||||
assert result.exit_code == 0
|
assert result.exit_code == 0
|
||||||
assert output_file.exists()
|
assert output_file.exists()
|
||||||
@@ -84,11 +88,15 @@ class TestCLI:
|
|||||||
req_file.write_text("As a user, I want to login")
|
req_file.write_text("As a user, I want to login")
|
||||||
|
|
||||||
for framework in ["cucumber", "behave", "pytest-bdd"]:
|
for framework in ["cucumber", "behave", "pytest-bdd"]:
|
||||||
result = runner.invoke(convert, [
|
result = runner.invoke(
|
||||||
|
convert,
|
||||||
|
[
|
||||||
str(req_file),
|
str(req_file),
|
||||||
"--framework", framework,
|
"--framework",
|
||||||
|
framework,
|
||||||
"--no-validate",
|
"--no-validate",
|
||||||
])
|
],
|
||||||
|
)
|
||||||
|
|
||||||
assert result.exit_code == 0, f"Failed for framework: {framework}"
|
assert result.exit_code == 0, f"Failed for framework: {framework}"
|
||||||
|
|
||||||
@@ -111,11 +119,14 @@ class TestCLI:
|
|||||||
req_file = tmp_path / "requirements.txt"
|
req_file = tmp_path / "requirements.txt"
|
||||||
req_file.write_text("As a user, I want to do something with some data")
|
req_file.write_text("As a user, I want to do something with some data")
|
||||||
|
|
||||||
result = runner.invoke(convert, [
|
result = runner.invoke(
|
||||||
|
convert,
|
||||||
|
[
|
||||||
str(req_file),
|
str(req_file),
|
||||||
"--ambiguity-check",
|
"--ambiguity-check",
|
||||||
"--no-validate",
|
"--no-validate",
|
||||||
])
|
],
|
||||||
|
)
|
||||||
|
|
||||||
assert result.exit_code == 0
|
assert result.exit_code == 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user