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(tests): remove swagger-codegen dependecy #230

Merged
merged 9 commits into from
Aug 2, 2019

Conversation

callenmacphee
Copy link
Contributor

@callenmacphee callenmacphee commented Jul 29, 2019

Pull request for swagger-codegen language removal from testing to get more accurate reading on coveralls. Conftest has been stripped of swagger_client fixtures. Tests previously dependent on swagger_client fixtures now depend on client and user fixtures.

Improvements

  • Removed swagger-codegen dependency from tests; coverage report is now 80

@github-actions
Copy link

github-actions bot commented Jul 29, 2019

The style in this PR agrees with black. ✔️

This formatting comment was generated automatically by a script in uc-cdis/wool.

Copy link
Contributor

@paulineribeyre paulineribeyre left a comment

Choose a reason for hiding this comment

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

very cool! 80% coverage 🎉

a general comment: adding assert res.status_code == 200 after each get/post/put/patch/delete operation is good practice. especially after the post steps in your case, since the rest of the test is counting on the record being there

please also have a look at what Codacy is complaining about!

tests/test_schema_migration.py Outdated Show resolved Hide resolved
tests/test_urls_endpoints.py Outdated Show resolved Hide resolved
tests/test_urls_endpoints.py Outdated Show resolved Hide resolved
tests/test_urls_endpoints.py Show resolved Hide resolved
tests/test_urls_endpoints.py Outdated Show resolved Hide resolved
tests/test_client.py Show resolved Hide resolved
tests/test_client.py Outdated Show resolved Hide resolved
tests/test_client.py Outdated Show resolved Hide resolved
tests/test_client.py Outdated Show resolved Hide resolved
tests/test_client.py Outdated Show resolved Hide resolved
tests/test_client.py Outdated Show resolved Hide resolved
tests/test_client.py Outdated Show resolved Hide resolved
tests/test_client.py Show resolved Hide resolved
tests/test_client.py Show resolved Hide resolved
tests/util.py Show resolved Hide resolved
tests/test_client.py Outdated Show resolved Hide resolved
Copy link
Contributor

@paulineribeyre paulineribeyre left a comment

Choose a reason for hiding this comment

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

lgtm

@callenmacphee callenmacphee merged commit 48d007f into master Aug 2, 2019
@paulineribeyre paulineribeyre deleted the test/improve-test-coverage branch August 2, 2019 16:38
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.

None yet

2 participants