diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-02-24 11:41:33 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-02-24 15:28:54 +0100 |
commit | 67e9875d82d1ee2de3ed64d756092b1f5698c9c0 (patch) | |
tree | 994a1c27c8347a975814eeaf4991d1a59e6e6947 /functest/tests/unit | |
parent | a1b0f64bccea682e55ec5086aef979df57cf686f (diff) |
Print env vars and env_file
It simply eases detecting wrong inputs [1].
[1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/796/console
Change-Id: I0784c29265c69a6ba4a049226196bcdd70b0a572
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/tests/unit')
-rw-r--r-- | functest/tests/unit/ci/test_run_tests.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/functest/tests/unit/ci/test_run_tests.py b/functest/tests/unit/ci/test_run_tests.py index bc967743..b8dca20c 100644 --- a/functest/tests/unit/ci/test_run_tests.py +++ b/functest/tests/unit/ci/test_run_tests.py @@ -91,8 +91,7 @@ class RunTestsTesting(unittest.TestCase): pass envfile = 'rc_file' with mock.patch('six.moves.builtins.open', - mock.mock_open(read_data=msg), - create=True) as mock_method,\ + mock.mock_open(read_data=msg)) as mock_method,\ mock.patch('os.path.isfile', return_value=True): mock_method.return_value.__iter__ = lambda self: iter( self.readline, '') |