We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd2ad70 commit fe31f29Copy full SHA for fe31f29
1 file changed
tests/tokens/test_cli.py
@@ -28,6 +28,7 @@
28
29
from click.testing import CliRunner
30
import databricks_cli.tokens.cli as cli
31
+from tests.utils import provide_conf
32
33
34
@pytest.fixture()
@@ -38,7 +39,8 @@ def tokens_api_mock():
38
39
yield _tokens_api_mock
40
41
42
+@provide_conf
43
def test_create_token_cli_defaults(tokens_api_mock):
44
runner = CliRunner()
45
runner.invoke(cli.create_token_cli, ['--comment', 'test'])
- assert tokens_api_mock.create.called_with(60 * 60 * 24 * 90, 'test')
46
+ tokens_api_mock.create.assert_called_with(60 * 60 * 24 * 90, 'test')
0 commit comments