def test_project_slugs(self): """ If project slugs are passed to Command.handle, only sync projects matching those slugs. """ ignore_project, handle_project = ProjectFactory.create_batch(2) self.execute_command(handle_project.slug) self.mock_sync_project.delay.assert_called_with(handle_project.pk, no_pull=False, no_commit=False)
def test_project_slugs(self): """ If project slugs are passed to Command.handle, only sync projects matching those slugs. """ ignore_project, handle_project = ProjectFactory.create_batch(2) self.execute_command(handle_project.slug) self.mock_sync_project.delay.assert_called_with(handle_project.pk, no_pull=False, no_commit=False)
def test_handle_project_slugs(self): """ If project slugs are passed to Command.handle, only sync projects matching those slugs. """ ignore_project, handle_project = ProjectFactory.create_batch(2) self.command.handle_project = Mock() self.execute_command(handle_project.slug) self.command.handle_project.assert_called_with(handle_project) assert_not_in(call(ignore_project), self.command.handle_project.mock_calls)
def test_handle_project_slugs(self): """ If project slugs are passed to Command.handle, only sync projects matching those slugs. """ ignore_project, handle_project = ProjectFactory.create_batch(2, repository_type='git' ) self.command.handle_project = Mock() self.execute_command(handle_project.slug) self.command.handle_project.assert_called_with(handle_project) assert_not_in(call(ignore_project), self.command.handle_project.mock_calls)