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

TST: sql skip tests at class level if database is not available #9110

Merged

Conversation

jorisvandenbossche
Copy link
Member

Added a SetUpClass to skip the full class when no connection can be made to the database, and made some of the other methods class methods, to be able to use them in SetUpClass

Eg if you are testing locally and don't have one of the databases available, then it will test the connection and skip each individual test, which can take some time.

@jorisvandenbossche jorisvandenbossche added the IO SQL to_sql, read_sql, read_sql_query label Dec 19, 2014
@jorisvandenbossche jorisvandenbossche added this to the 0.16.0 milestone Dec 19, 2014
@jorisvandenbossche jorisvandenbossche added the Testing pandas testing functions or related to the test suite label Dec 19, 2014
@jreback
Copy link
Contributor

jreback commented Dec 19, 2014

closes #7091 ?

@jorisvandenbossche
Copy link
Member Author

@jreback no, it still something else I think. The issue is about the creation of the database itself, here it is just checking if a connection can be made for each class instead of for each test separately.

jorisvandenbossche added a commit that referenced this pull request Dec 20, 2014
TST: sql skip tests at class level if database is not available
@jorisvandenbossche jorisvandenbossche merged commit 8b7f7af into pandas-dev:master Dec 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO SQL to_sql, read_sql, read_sql_query Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants