-
Notifications
You must be signed in to change notification settings - Fork 193
Cleanup test organization #296
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
Split folders for PyGraph an PyDigraph/PyDAG
Removed test dispatch because it is better to keep it in the top level in order to not repeat unecessary code
Merging updates from qiskit/retworkx
Pull Request Test Coverage Report for Build 704737619
💛 - Coveralls |
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.
This LGTM, thanks for doing this! The only nitpick I have is instead of tests/DiGraph
could we name that directory tests/digraph
?
Sure. |
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.
Awesome, thanks for the quick update. This LGTM, I especially appreciate you catching things like test_unique_neighbors_on_graphs
which was put in the wrong file (even though the test_neighbors files were already split). Heh, if I had done this I would have completely missed that and just left it in digraph/test_neighbors
.
Before I merge this PR though we should give a heads up to @georgios-ts @IvanIsCoding @Chriscrosser3310 and @jlapeyre (which hopefully this comment will be sufficient for) who all have open PRs as this will require them to rebase and move the tests into the new consistent directory structure.
Closes #183.
Creates a cohesive structure for tests by splitting class tests into folders, all
PyGraph
class tests are in thetests/graph
folder and allPyDiGraph/PyDAG
tests are in thetests/DiGraph
folder. As before, allretworkx.generators
tests are in thetests/generators
folder.There are two exceptions:
test_dispatch.py
is in thetests
folder because it tests bothPyGraph
andPyDigraph
and moving this test to separate folders would lead to duplicated code.test_random.py
is in thetests
folder because it is similar to generators and generates random graphs, however they are not in thegenerators
module, so I was unsure if it is needed to create arandom
folder to put this kind of tests.