Skip to content

Commit 7a11766

Browse files
author
Matthew Hardwick
authored
add handling in bdd runner for unstable operations (#67)
* add handling in bdd runner for unstable operations * fix docstring
1 parent 9f57bf3 commit 7a11766

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,11 @@ def api(package_name, client, name):
279279
"calls": [],
280280
}
281281

282+
@given(parsers.parse('operation "{name}" enabled'))
283+
def operation_enabled(client, name):
284+
"""Enable the unstable operation specific in the clause."""
285+
client.configuration.unstable_operations[snake_case(name)] = True
286+
282287

283288
@given(parsers.parse('new "{name}" request'))
284289
def api_request(api, name):

0 commit comments

Comments
 (0)