-
Notifications
You must be signed in to change notification settings - Fork 3
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
BUG: test in crowsetta/tests/test_data.py failed #221
Comments
Hi @shaupert could you please try running tests with the code in the main branch, which is ahead of the releases on PyPI and conda? Using a development environment set up as described here: https://crowsetta.readthedocs.io/en/latest/development/contributors.html#setting-up-a-development-environment I think the source of the issue is the same as @rhine3 had in #218 and #220. Because I added vignettes + related features, but did not release a new version since I knew I'd be making even more changes during the review! Partly my fault for not making that clearer. And partly because pyOpenSci guides don't have explicit language about this right now as @rhine3 points out |
Hi @NickleDave .
After downgrading my version of Python to 3.9.16, I still have the same error and could no go further as I don't know how to use nox. You have to know that I'm using I also tried again to run the test directly on a colab session after cloning crowsetta ( I'm afraid, I can not help you more on that issue. I did my best. I don't think the problem is big, I'm sure you will be able to fix it. Sylvain |
Thank you @shaupert for taking the time to test this. I think what's going on with It's a bit confusing but under the hood I did just push a commit that tells I don't think the tests will ever work for a package installed off of an index, since the distribution package doesn't include (1) pytest as a dependency or (2) the test data, which would make the size of the distribution much bigger. Like you said, it's not the end of the world if you can't run the tests for the review. They're running on CI and passing so we know they must be working somewhere 🙂 Just telling you since I thought you might be interested in what's going on here, or at least what I think is going on 🤯 We did have some discussion for the PyOS packaging guide about whether people should include tests. Since PyPI serves as a kind of "source" for other package managers (e.g. Debian) then it can be good if packages include tests. But IIUC we would really run up the PyPI bills if we uploaded a ton of giant packages, not to mention increasing our carbon footprint. Anyway, not relevant for the review here. I'll go ahead and close this. |
Just to let you know that I'm on Ubuntu 22.04.02. |
Thanks! No offense meant by suggesting you're a Mac user 😼 Looks like |
Before submitting a bug, please make sure the issue hasn't been already addressed by searching through the past issues
Describe the bug
While running tests with Pytest I found that 1 of the tests in crowsetta/tests/test_data.py failed on my colab session.
It looks like the problem comes from :
fixture 'tmp_path' not found
To Reproduce
I cloned the repo on my colab session and run the test with the following command
pytest crowsetta/tests/test_data.py
Screenshots
Errors are reproduced in text below
/content/crowsetta/tests/test_data.py:51
====================== 42 passed, 1 error in 1.14 seconds ======================
Desktop (please complete the following information):
Additional context
I created this issue while performing the pyOpenSci/software-submission#68.
The text was updated successfully, but these errors were encountered: