-
Notifications
You must be signed in to change notification settings - Fork 300
Imagehash listfile for fixbranch #3311
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
Imagehash listfile for fixbranch #3311
Conversation
…ge; clarify comments.
|
I think this is ready to go now. |
|
I am going to respin the tests now that #3310 is merged |
lib/iris/tests/test_image_json.py
Outdated
| '/gh-pages/v4_files_listing.txt') | ||
| req = requests.get(listingfile_uri) | ||
| if req.status_code != 200: | ||
| raise ValueError('Get failed on image listings file: {}'.format( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could capitalise GET to make it clear it is a http request. Otherwise, the error reads a bit funnily out of context
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, I see what you mean 😁
|
Thanks for all your work on this @pp-mo! It will be great to get this test running! |
* Test-imagehash uris checked against listing file instead of github api listing. * Licence header fix. * Remove redundant import + skip; fix bytes decode; improve error message; clarify comments. * Improved error message.
* Test-imagehash uris checked against listing file instead of github api listing. * Licence header fix. * Remove redundant import + skip; fix bytes decode; improve error message; clarify comments. * Improved error message.
* Test-imagehash uris checked against listing file instead of github api listing. * Licence header fix. * Remove redundant import + skip; fix bytes decode; improve error message; clarify comments. * Improved error message.
An almost complete rewrite of
iris.tests.test_image-json.Instead of using the GitHub API to interrogate the test-iris-imagehash repo, we now just fetch an 'image listings file' which is basically the text of an
ls *.png.This is because the (unauthenticated) GitHub API access was proving very unreliable.
Note : relies on SciTools/test-iris-imagehash#23 , but that is already merged.