This repository has been archived by the owner on Nov 5, 2019. It is now read-only.
Improved unit-test line coverage and quality. #356
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In particular
unittest2
.test_jwt
,test_clientsecrets
,and
test_service_account
by usingself.assertRaises
instead of
self.fail()
self.assertRaises
as a context manager sothe thrown exception can be inspected / compared against. This
is done instead of manually catching the exception and
holding on to it (
unittest2
backports this feature fromunittest
that was not available in Python 2.6)test_multistore_file
python2.4
hashbang fromtest_jwt
andtest_service_account
unittest2
as a test dependency intox.ini
test_clientsecrets.test_load_by_filename_missing_file
to use the
self.assertRaises
context manager (this wasa problem in More informative error when failing to open secrets file. #349 and More informative error when failing to open secrets file. #350)
test_jwt
module docstring to reflect actual purpose