예제 #1
0
 def test_fetch_tasks_if_needed(self, m_fetch_qa_suite):
     config = {
         "suite_path": "/some/suite/path",
         "suite_branch": "feature_branch"
     }
     m_fetch_qa_suite.return_value = "/some/other/suite/path"
     result = run.fetch_tasks_if_needed(config)
     m_fetch_qa_suite.assert_called_with("feature_branch")
     assert result == "/some/other/suite/path"
예제 #2
0
 def test_fetch_tasks_if_needed(self, m_fetch_qa_suite):
     config = {"suite_path": "/some/suite/path", "suite_branch": "feature_branch"}
     m_fetch_qa_suite.return_value = "/some/other/suite/path"
     result = run.fetch_tasks_if_needed(config)
     m_fetch_qa_suite.assert_called_with("feature_branch")
     assert result == "/some/other/suite/path"