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

test(python): Split long test modules (namespaces) #6668

Merged
merged 5 commits into from
Feb 4, 2023

Conversation

stinodego
Copy link
Member

Relates to #6364

We really need to create some more structure in the tests folder. There are several modules that are thousands of lines long, and then there are a LOT of smaller test modules. It's not clear where contributors should place their tests.

It's not that easy to come up with a good structure, as concepts overlap. But one thing that's an easy improvement is to move all tests for namespace methods to a namespaces folder: test_string, test_list, etc. That will clean up some of the longest test modules.

Changes:

  • Added a py-polars/tests/unit/namespaces folder where namespace methods will be tested.
  • Gathered all tests related to the str namespace and moved it to the namespaces folder.
  • Made a separate module for test_strptime as there are a lot of tests related to that.
  • Moved a few datetime namespace tests to the namespaces folder as well (still more to do).

@github-actions github-actions bot added python Related to Python Polars test Related to the test suite labels Feb 4, 2023
@stinodego stinodego changed the title test(python): Split long test modules test(python): Split long test modules (namespaces) Feb 4, 2023
@ritchie46 ritchie46 merged commit c7db9e0 into pola-rs:master Feb 4, 2023
Vincenthays pushed a commit to Vincenthays/polars that referenced this pull request Feb 9, 2023
@stinodego stinodego deleted the split-long-test-modules branch February 22, 2023 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Related to Python Polars test Related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants