We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3df4699 commit c615a9fCopy full SHA for c615a9f
tests/bdd/api_key_tests.py
@@ -61,6 +61,11 @@ def set_any_secret_token(an_agent):
61
an_agent.config.update(next(version_counter), secret_token="foo")
62
63
64
+@when(parsers.parse("a secret_token is set to '{key}' in the config"))
65
+def set_any_secret_token(an_agent, key):
66
+ an_agent.config.update(next(version_counter), secret_token=key)
67
+
68
69
@when("an api key is not set in the config")
70
def unset_api_key(an_agent):
71
an_agent.config.update(next(version_counter), api_key=None)
0 commit comments