summaryrefslogtreecommitdiffstats
path: root/dcae-cli/dcae_cli/commands/tests/test_data_format_cmd.py
diff options
context:
space:
mode:
authorMichael Hwang <mhwang@research.att.com>2018-03-02 20:46:21 -0500
committerMichael Hwang <mhwang@research.att.com>2018-03-09 16:25:24 -0500
commitb11dae55f54720759431107e83f1070c10aacd96 (patch)
treedda6037b9301cbd20300bd566485cf4463124f4c /dcae-cli/dcae_cli/commands/tests/test_data_format_cmd.py
parent141bcd47087b39d2ac3846ace864b9d9b0706ff5 (diff)
Make tox work in a fresh scenario
Severing the unit tests from the local config dependency meant refactoring code that made pure unit testing impossible. Introduced a conftest in this commit. Change-Id: Id005b8b5b0704ccac33fa8768be1642941281f34 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.py4
1 files changed, 2 insertions, 2 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 8ef4c9b..9a71e41 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
@@ -1,7 +1,7 @@
# ============LICENSE_START=======================================================
# org.onap.dcae
# ================================================================================
-# Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+# Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -40,7 +40,7 @@ def _get_spec(path):
return json.load(file)
-def test_basic():
+def test_basic(mock_cli_config):
obj = {'catalog': MockCatalog(purge_existing=True, db_name='dcae_cli.test.db', enforce_image=False),
'config': {'user': 'test-user'}}