Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

test_copy_job_service tests split refactoring #62

Merged
merged 3 commits into from
Sep 17, 2018

Conversation

marcin-kolda
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Sep 14, 2018

Pull Request Test Coverage Report for Build 632

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 80.856%

Totals Coverage Status
Change from base Build 626: 0.1%
Covered Lines: 2285
Relevant Lines: 2826

💛 - Coveralls

@patch.object(CopyJobService, '_create_random_job_id',
return_value="random_job_123")
@patch.object(BigQuery, 'insert_job',
side_effect=[HttpError(Mock(status=503), "internal error"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess first error is because we want to test the availability to retry the method if there is a 5** error, wouldn't it be better to have it in seperate test?

@jarekdrabek jarekdrabek merged commit f996dbe into master Sep 17, 2018
@jarekdrabek jarekdrabek deleted the refactored_copy_job_service_tests branch September 17, 2018 09:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants