This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# guess we're spinning up our own reordering function | |
def pytest_collection_modifyitems(config, items): | |
""" | |
After collection, this will reorder the function test ordering by dependency. | |
Here's what we're gonna do: | |
bucket the functions by their parents | |
For each parent bucket, iterate over all functions, keeping track of dependency tree. | |
Start doing BFS down the dependency tree. | |
TODO: check for circular dependency |