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: clean old sql tests #42835

Merged
merged 5 commits into from
Aug 8, 2021
Merged

Conversation

fangchenli
Copy link
Member

@fangchenli fangchenli commented Jul 31, 2021

remove skipped mysql tests, simplify old sqlite tests

a small step towards #40686

@fangchenli fangchenli added the Testing pandas testing functions or related to the test suite label Jul 31, 2021
@lithomas1 lithomas1 added the IO SQL to_sql, read_sql, read_sql_query label Jul 31, 2021
@jreback jreback added this to the 1.4 milestone Aug 5, 2021
@pytest.mark.single
@pytest.mark.db
@pytest.mark.skip(
reason="gh-13611: there is no support for MySQL if SQLAlchemy is not installed"
Copy link
Member

Choose a reason for hiding this comment

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

Just curious, is is not possible for us to test MySQL with these test or are these covered in different tests?

Copy link
Member Author

Choose a reason for hiding this comment

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

These are covered in different tests using sqlalchemy. My guess is many years ago pandas's SQL functions were implemented directly on top of SQL drivers like pymysql. And after refactoring using sqlalchemy, those old tests were skipped but not removed for some reason.

@jreback jreback merged commit 08d296f into pandas-dev:master Aug 8, 2021
@fangchenli fangchenli deleted the clean-old-sql-tests branch August 17, 2021 04:22
feefladder pushed a commit to feefladder/pandas that referenced this pull request Sep 7, 2021
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.

4 participants