Skip to content

Conversation

@knaaptime
Copy link
Member

@knaaptime knaaptime commented Nov 5, 2024

use xdist

@knaaptime
Copy link
Member Author

@jGaboardi the tests are correct now, but fail when xdist tries to read a file before it exists. We solved this in geosnap using groups, but I don't remember how to assign groups... 🙃

@jGaboardi
Copy link
Member

I think just like the link there for geosnap, no?

@jGaboardi
Copy link
Member

I'll try to take a look later.

@knaaptime
Copy link
Member Author

I think just like the link there for geosnap, no?

well yes, but I cant remember which tests need to go in the same group to avoid the co-read

@knaaptime
Copy link
Member Author

honestly i think the answer is to refactor the tests fairly substantially so that we only need to read the file in once

@jGaboardi
Copy link
Member

We can also create conftest.py and run that get_data() in a pytest_sessionstart(). That will run it once and only once before any tests start.

@knaaptime knaaptime merged commit 72817fb into pysal:main Nov 5, 2024
1 of 6 checks passed
@knaaptime knaaptime deleted the testing branch November 5, 2024 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants