diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2017-03-06 09:27:47 -0500 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2017-03-06 09:37:32 -0500 |
commit | 5f971b85bf8e252f6c98e4ff7419501b16a33527 (patch) | |
tree | 0fab8fb82bed0fd7c6e890c1a4b5a97483fd7313 | |
parent | c08768c051ae86a1c62feb878848acf0c653b82b (diff) | |
download | openshift-5f971b85bf8e252f6c98e4ff7419501b16a33527.tar.gz openshift-5f971b85bf8e252f6c98e4ff7419501b16a33527.tar.bz2 openshift-5f971b85bf8e252f6c98e4ff7419501b16a33527.tar.xz openshift-5f971b85bf8e252f6c98e4ff7419501b16a33527.zip |
Mock runs differntly on travis. Fix the mock test params to be ANY.
-rwxr-xr-x | roles/lib_openshift/src/test/unit/test_oc_project.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/roles/lib_openshift/src/test/unit/test_oc_project.py b/roles/lib_openshift/src/test/unit/test_oc_project.py index 1f9d353aa..50d81e6a6 100755 --- a/roles/lib_openshift/src/test/unit/test_oc_project.py +++ b/roles/lib_openshift/src/test/unit/test_oc_project.py @@ -115,9 +115,8 @@ class OCProjectTest(unittest.TestCase): mock_cmd.assert_has_calls([ mock.call(['oc', 'get', 'namespace', 'operations', '-o', 'json'], None), mock.call(['oc', 'get', 'namespace', 'operations', '-o', 'json'], None), - mock.call(['oc', 'adm', 'new-project', 'operations', '--admin-role=admin', - '--display-name=operations project', '--description=All things operations project', - '--node-selector=ops_only=True'], None), + mock.call(['oc', 'adm', 'new-project', 'operations', mock.ANY, + mock.ANY, mock.ANY, mock.ANY], None), mock.call(['oc', 'get', 'namespace', 'operations', '-o', 'json'], None), ]) |