예제 #1
0
 def test_version_control(self, mock_version_control, mock_get_engine,
         mock_find_repo):
     database = 'fake'
     migration.db_version_control(database=database)
     mock_find_repo.assert_called_once_with(database)
     mock_version_control.assert_called_once_with('engine', 'repo', None)
예제 #2
0
 def test_version_control(self, mock_version_control, mock_get_engine,
                          mock_find_repo):
     database = 'fake'
     migration.db_version_control(database=database)
     mock_find_repo.assert_called_once_with(database)
     mock_version_control.assert_called_once_with('engine', 'repo', None)
예제 #3
0
 def test_version_control(self, mock_version_control, mock_get_engine, mock_find_repo):
     database = "fake"
     migration.db_version_control(database=database)
     mock_find_repo.assert_called_once_with(database)
     mock_version_control.assert_called_once_with("engine", "repo", None)