소스 검색

Mock runs differntly on travis. Fix the mock test params to be ANY.

Kenny Woodson 8 년 전
부모
커밋
5f971b85bf
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      roles/lib_openshift/src/test/unit/test_oc_project.py

+ 2 - 3
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),
 
         ])