diff options
author | Michael Hwang <mhwang@research.att.com> | 2018-03-02 20:46:21 -0500 |
---|---|---|
committer | Michael Hwang <mhwang@research.att.com> | 2018-03-09 16:25:24 -0500 |
commit | b11dae55f54720759431107e83f1070c10aacd96 (patch) | |
tree | dda6037b9301cbd20300bd566485cf4463124f4c /dcae-cli/tox.ini | |
parent | 141bcd47087b39d2ac3846ace864b9d9b0706ff5 (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/tox.ini')
-rw-r--r-- | dcae-cli/tox.ini | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dcae-cli/tox.ini b/dcae-cli/tox.ini index b0f267a..eadd2c2 100644 --- a/dcae-cli/tox.ini +++ b/dcae-cli/tox.ini @@ -8,4 +8,6 @@ deps= coverage pytest-cov mock -commands=pytest --junitxml xunit-results.xml --cov {envsitepackagesdir}/dcae_cli --cov-report=xml +setenv = + PYTHONPATH={toxinidir} +commands=pytest dcae_cli --junitxml xunit-results.xml --cov dcae_cli --cov-report=xml |