summaryrefslogtreecommitdiffstats
path: root/dcae-cli/dcae_cli/commands/tests/test_profiles_cmd.py
diff options
context:
space:
mode:
authorMichael Hwang <mhwang@research.att.com>2018-03-14 09:53:43 -0400
committerMichael Hwang <mhwang@research.att.com>2018-03-14 09:54:09 -0400
commit4cc7a3e4e33d607f344ac413a2cc9f763e8cf4bd (patch)
tree15ce705ba3ea275f2a43736f3e58c498ed831a06 /dcae-cli/dcae_cli/commands/tests/test_profiles_cmd.py
parentf9242fb6fd592a14b09761dfb58fb7f7e7c56607 (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_profiles_cmd.py')
-rw-r--r--dcae-cli/dcae_cli/commands/tests/test_profiles_cmd.py4
1 files changed, 2 insertions, 2 deletions
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")