Skip to content

Convert font/text tests to pytest #7872

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

Merged
merged 2 commits into from
Jan 23, 2017
Merged

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Jan 19, 2017

This is partially complete, but I have not been able to fully convert the mathtext/mathfont tests to use parametrization. The attempt at that is here, but of course it doesn't quite work yet. I don't think there's any way to parametrize the decorator, though maybe I've missed it. Any ideas @Kojoley?

@QuLogic QuLogic added this to the 2.1 (next point release) milestone Jan 19, 2017
@NelleV
Copy link
Member

NelleV commented Jan 19, 2017

LGTM 👍

IMO, the sooner we get these in, the better

@NelleV NelleV changed the title Convert font/text tests to pytest [MRG+1] Convert font/text tests to pytest Jan 19, 2017
@NelleV NelleV requested a review from Kojoley January 19, 2017 20:41
@QuLogic
Copy link
Member Author

QuLogic commented Jan 20, 2017

WRT parametrizing the comparison decorator, I just had a thought that we'd eventually be moving to pytest-mpl, so maybe I shouldn't worry too much about it right now. @astrofrog do you have any idea whether parametrizing the decorator is feasible when using pytest-mpl (it may have to be a fixture instead)?

@phobson
Copy link
Member

phobson commented Jan 20, 2017

@QuLogic while I'm by no means an expert, FWIW I have not had any luck parametrizing pytest-mpl comparison tests.

@phobson
Copy link
Member

phobson commented Jan 23, 2017

Is this one still a work in progress?

@QuLogic
Copy link
Member Author

QuLogic commented Jan 23, 2017

Just rebased; comments in the first post are optimizations that can wait for another PR.

Copy link
Member

@jkseppan jkseppan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@jkseppan jkseppan merged commit e82db62 into matplotlib:master Jan 23, 2017
jkseppan added a commit that referenced this pull request Jan 23, 2017
Merge pull request #7872: Convert font/text tests to pytest.
@QuLogic QuLogic deleted the pytest-font-text branch January 23, 2017 19:48
@QuLogic QuLogic changed the title [MRG+1] Convert font/text tests to pytest Convert font/text tests to pytest Jan 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants