Skip to content
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

Looking for an example version of the test_image_results module code #3619

Closed
fish2000 opened this issue Jan 29, 2019 · 2 comments
Closed

Looking for an example version of the test_image_results module code #3619

fish2000 opened this issue Jan 29, 2019 · 2 comments

Comments

@fish2000
Copy link
Contributor

fish2000 commented Jan 29, 2019

I realize that whatever is in test_image_results is probably private resources (S3 credentials, SSH keys, what have you) but is it possible to get an example posting of what exactly is in there – with the private stuff X’d out of course – so that we at home might replicate its functionality?

Thanks!

What did you do?

Looked for the test_image_results module named in Tests/helper.py.

What did you expect to happen?

That I’d find the file.

What actually happened?

It wasn’t there.

What are your OS, Python and Pillow versions?

  • OS: macOS Mojave 10.14.3
  • Python: cpython 3.7.2
  • Pillow: HEAD from GitHub

From Tests/helper.py, circa line 18:

# …
if os.environ.get('SHOW_ERRORS', None):
    # local img.show for errors.
    HAS_UPLOADER = True

    class test_image_results:
        @classmethod
        def upload(self, a, b):
            a.show()
            b.show()
else:
    try:
        import test_image_results
        HAS_UPLOADER = True
    except ImportError:
        pass
# …
@hugovk
Copy link
Member

hugovk commented Jan 29, 2019

It's this:

Installed with: pip install test-image-results

Added in PR #2862.

@fish2000
Copy link
Contributor Author

Sweet! I had no idea it was its own thing. Thanks!

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

No branches or pull requests

2 participants