-
Notifications
You must be signed in to change notification settings - Fork 86
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_eqcorrscan.py fails when data download fails. #435
Comments
Kia Ora Darren, it looks like the failed tests were due to a failure to download the test data: all the failed tests that I saw in the log seem to be associated with fails not existing. Can you please try deleting the test_data directory ( |
Thank you for the prompt response! I tried that, but it seems like the test data still failed to download. I have attached the log again, that includes me removing the test_data directory and running test_eqcorrscan.py twice. |
Ah, apologies, it looks like you need to remove your shutil.Error: Destination path '/Users/darrentpk/.eqcorrscan/pytest.ini' already exists was the failure to overwrite the existing directory that some other necessary files for running the tests are stored. This is annoying, sorry - this should have a change to this line to add in a check for the file and ask for a user response to allow the file to be overwritten, or keep the existing file. Sorry about that Darren! |
No worries! I just ran the test code again and it works well now, with only 1 failed test. |
Thanks for that. That one fail is an annoying doc test fail comparing 1 to 1.0 so nothing to worry about. |
I'm actually going to re-open this as a reminder to make the It should:
It would also be good if the script could know what files were expected in the |
Bumping to 0.5.0 as we need to get 0.4.3 out and I won't have time to make this improvement before then. |
What do you need help with?
Hi, I am trying to install eqcorrscan but running test_eqcorrscan.py yields "61 failed, 260 passed, 103 errors". I am also trying to go through the tutorials in the docs, but it does not seem to run smoothly. I will raise separate issues as I go along, but I want to make sure the tests run correctly first.
Provide an example so that we can reproduce your problem
Install eqcorrscan via conda install, pip install pytest, run test_eqcorrscan.py.
What help would you like?
"61 failed, 260 passed, 103 errors" does not seem like expected behaviour. Is something not installing right?
What is your setup? (please complete the following information):**
See log here:
test_log.txt
The text was updated successfully, but these errors were encountered: