Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/test coverage #17

Merged
merged 9 commits into from
Jan 9, 2019
Merged

Fix/test coverage #17

merged 9 commits into from
Jan 9, 2019

Conversation

ikolar
Copy link
Contributor

@ikolar ikolar commented Jan 8, 2019

Test coverage should not be at 100%:

  • in coveragerc, the if name = "main" was adjusted to allow for both single and double quotes,
  • in .travis.yml, travis will now fail if coverage falls bellow 100%
  • in Pipfile, struclog is now imported because it is needed in test_heroku_access.py
  • in test_heroku_access.py, the test for the call() method now also tests the version that uses structlog instead of the standard logging library.
  • in test_migrate.py, tests for two conditional lines were added
  • in test_utils.py, the two tests that might raise an Error are now separated.

Hope that's all.

Ref: #10

Also added a call to it in .travis.yml.  Not sure whether this is the
correct place, and this .travis.yml is quite different than the one in
woocart-api. Help appreciated.

Ref: #13
Had some issues getting the logging test to work.  In the end, I had to make
the structlog version log to the standard log, so that zope could still
catch it's messages.

Ref: #10
defined before the first call).

One line left.

Ref: #10
Copy link
Member

@zupo zupo left a comment

Choose a reason for hiding this comment

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

👍

@ikolar ikolar merged commit 53c58b9 into master Jan 9, 2019
@ikolar ikolar deleted the fix/test_coverage branch January 9, 2019 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants