{{ message }}
Make more of testing/ pytest-independent. - #14562
Closed
anntzer wants to merge 1 commit into
Closed
Conversation
anntzer
force-pushed
the
moreimagecomparisontest
branch
from
June 17, 2019 14:36
97fea4b to
8faa951
Compare
Member
Contributor
Author
|
Sorry for the lack of clarity. |
anntzer
force-pushed
the
moreimagecomparisontest
branch
2 times, most recently
from
June 24, 2019 07:08
f28bc2d to
b0d5f41
Compare
anntzer
force-pushed
the
moreimagecomparisontest
branch
2 times, most recently
from
July 18, 2019 16:44
ae97b3e to
ed4eaf1
Compare
anntzer
force-pushed
the
moreimagecomparisontest
branch
from
December 13, 2019 17:02
ed4eaf1 to
7ff4d34
Compare
This makes it actually possible to write tests independently of pytest
(the API is still private, but could be made public):
```
import unittest
from matplotlib import pyplot as plt
from matplotlib.testing.decorators import _make_image_comparator
class TestFoo(unittest.TestCase):
@_make_image_comparator(baseline_images=["foo"], extension="png")
def test_bar(self):
fig, ax = plt.subplots()
```
works as expected.
anntzer
force-pushed
the
moreimagecomparisontest
branch
from
May 2, 2020 05:31
7ff4d34 to
4b55644
Compare
jklymak
marked this pull request as draft
May 8, 2021 17:09
Member
|
is this really something you want to pursue? I'm not following what its for either... |
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

PR Summary
This makes it actually possible to write tests independently of pytest
(the API is still private, but could be made public):
works as expected.
See also discussion starting at https://gitter.im/matplotlib/matplotlib?at=5d064454a8d9871b3299790a.
Depends on #14338.PR Checklist