arup-group / genet

Manipulate MATSim networks via a Python API.
MIT License
44 stars 9 forks source link

Fix test fixtures #205

Closed brynpickering closed 12 months ago

brynpickering commented 1 year ago

Restructure how test fixtures are set up to align with pytest recommendations.

I can't get some of the pyproj-related tests working on my machine, hence why there are several failing commits before I manage to fix everything properly. I would suggest merging this PR with "squash and merge" to mitigate the dirty commit history on main.

Summary:

The benefit of utils being pytest fixtures is that you know that they are test-related by the fact that the test functions have them in their argument list. It also allows you to remove the test directory from the sys path (by removing init.py), which is a cleaner way to manage test dirs.