-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: Skip test_database_uri_string if pg8000 importable #16528
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
Conversation
@@ -938,6 +938,12 @@ def test_database_uri_string(self): | |||
|
|||
# using driver that will not be installed on Travis to trigger error | |||
# in sqlalchemy.create_engine -> test passing of this error to user |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you would need to do
pg8000 = pytest.importorskip('pg8000') # noqa
you need to explicitly install this though in the requirements-2.7.pip (and other ones if needed)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@neirbowj ahh I see what you posted on the issue. ok then your fix is fine (just need the noqa), and put an explanation of what is going on here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually how did this come up? reading the comments suggest that we don't want to have this driver installed at all (we are testing an error when sqlalchemy is installed but not a specific driver).
Codecov Report
@@ Coverage Diff @@
## master #16528 +/- ##
==========================================
- Coverage 90.79% 90.79% -0.01%
==========================================
Files 161 161
Lines 51063 51063
==========================================
- Hits 46365 46364 -1
- Misses 4698 4699 +1
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #16528 +/- ##
=======================================
Coverage 90.79% 90.79%
=======================================
Files 161 161
Lines 51063 51063
=======================================
Hits 46365 46365
Misses 4698 4698
Continue to review full report at Codecov.
|
This looks good, thanks. |
Yes, perfect! Thanks @neirbowj |
git diff upstream/master --name-only -- '*.py' | flake8 --diff