Skip to content

Commit fbdb10f

Browse files
committed
Improve test
1 parent bfd50e5 commit fbdb10f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/regression/test_issue_117.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ def test_issue_117(runner: CliRunner, model_data_with_cleanup, library) -> None:
2626
if library_config_dict[library].include_sync:
2727
assert (test_result_path / "services" / "default_service.py").exists()
2828
assert (test_result_path / "services" / "default_service.py").read_text().find(
29-
'path = f"/{foo_bar}"'
29+
'path = f"/bar-boz/{foo_bar}"'
3030
) != -1
3131

3232
if library_config_dict[library].include_async:
3333
assert (test_result_path / "services" / "async_default_service.py").exists()
3434
assert (
3535
test_result_path / "services" / "async_default_service.py"
36-
).read_text().find('path = f"/{foo_bar}"') != -1
36+
).read_text().find('path = f"/bar-boz/{foo_bar}"') != -1

tests/test_data/issue_117.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"paths": {
88

9-
"/{foo-bar}": {
9+
"/bar-boz/{foo-bar}": {
1010
"get": {
1111

1212
"parameters": [

0 commit comments

Comments
 (0)