From 4cc7a3e4e33d607f344ac413a2cc9f763e8cf4bd Mon Sep 17 00:00:00 2001 From: Michael Hwang Date: Wed, 14 Mar 2018 09:53:43 -0400 Subject: Use tmpdir when using mock catalog of tests Change-Id: I8ef3e3d79729b8aff899f6cda58d75245b3ad3e4 Issue-ID: DCAEGEN2-372 Signed-off-by: Michael Hwang --- dcae-cli/dcae_cli/commands/tests/test_profiles_cmd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dcae-cli/dcae_cli/commands/tests/test_profiles_cmd.py') diff --git a/dcae-cli/dcae_cli/commands/tests/test_profiles_cmd.py b/dcae-cli/dcae_cli/commands/tests/test_profiles_cmd.py index 4380b13..be89722 100644 --- a/dcae-cli/dcae_cli/commands/tests/test_profiles_cmd.py +++ b/dcae-cli/dcae_cli/commands/tests/test_profiles_cmd.py @@ -34,12 +34,12 @@ from dcae_cli.util import profiles from dcae_cli.util import config -def test_basic(monkeypatch, tmpdir): +def test_basic(monkeypatch, tmpdir, mock_db_url): runner = CliRunner() # Setup config - test_db_url = "sqlite:///{0}/dcae_cli.db".format(util.get_app_dir()) + test_db_url = mock_db_url config_dict = { "user": "ninny", "active_profile": "fake-solutioning", "db_url": test_db_url, "cli_version": "2.0.0" } config_file = tmpdir.join("config.json") -- cgit 1.2.3-korg