diff options
author | Michael Hwang <mhwang@research.att.com> | 2018-03-14 09:53:43 -0400 |
---|---|---|
committer | Michael Hwang <mhwang@research.att.com> | 2018-03-14 09:54:09 -0400 |
commit | 4cc7a3e4e33d607f344ac413a2cc9f763e8cf4bd (patch) | |
tree | 15ce705ba3ea275f2a43736f3e58c498ed831a06 /dcae-cli/dcae_cli/commands/tests/test_data_format_cmd.py | |
parent | f9242fb6fd592a14b09761dfb58fb7f7e7c56607 (diff) |
Use tmpdir when using mock catalog of tests
Change-Id: I8ef3e3d79729b8aff899f6cda58d75245b3ad3e4
Issue-ID: DCAEGEN2-372
Signed-off-by: Michael Hwang <mhwang@research.att.com>
Diffstat (limited to 'dcae-cli/dcae_cli/commands/tests/test_data_format_cmd.py')
-rw-r--r-- | dcae-cli/dcae_cli/commands/tests/test_data_format_cmd.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dcae-cli/dcae_cli/commands/tests/test_data_format_cmd.py b/dcae-cli/dcae_cli/commands/tests/test_data_format_cmd.py index 9a71e41..a291a74 100644 --- a/dcae-cli/dcae_cli/commands/tests/test_data_format_cmd.py +++ b/dcae-cli/dcae_cli/commands/tests/test_data_format_cmd.py @@ -40,9 +40,9 @@ def _get_spec(path): return json.load(file) -def test_basic(mock_cli_config): - - obj = {'catalog': MockCatalog(purge_existing=True, db_name='dcae_cli.test.db', enforce_image=False), +def test_basic(mock_cli_config, mock_db_url, tmpdir): + obj = {'catalog': MockCatalog(purge_existing=True, db_name='dcae_cli.test.db', + enforce_image=False, db_url=mock_db_url), 'config': {'user': 'test-user'}} runner = CliRunner() |