Skip to content

Commit 4b465a5

Browse files
authored
Fix api_instance name with a dash
1 parent 391561c commit 4b465a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.generator/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ def operation_specs(specs):
279279
def api(context, api_version, specs, name):
280280
"""Return an API instance."""
281281
assert name in {tag["name"].replace(" ", "") for tag in specs[api_version]["tags"]}
282-
context["api_instance"] = {"name": name}
282+
instance_name = name.replace("-", "")
283+
context["api_instance"] = {"name": instance_name}
283284

284285

285286
@given(parsers.parse('operation "{name}" enabled'))

0 commit comments

Comments
 (0)