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

fix for not calling setupClass #9

Merged
merged 4 commits into from
Jul 10, 2016
Merged

Conversation

aoxborrow
Copy link
Contributor

I wanted this feature for my custom test runner but we use setupClass a lot. I moved the timer code to TestSuite.run(). This is maybe not ideal, as it duplicates some of TestSuite's code, but I couldn't figure out a better way. The existing function wrapper doesn't seem fixable, because of all the code that relies on test.__class__

Fixes #5

@coveralls
Copy link

coveralls commented Jul 8, 2016

Coverage Status

Coverage increased (+16.4%) to 84.0% when pulling 467952a on paste:fix.setupclass into 8576ef9 on realpython:master.

@mjhea0 mjhea0 merged commit d09af9f into realpython:master Jul 10, 2016
@mjhea0
Copy link
Contributor

mjhea0 commented Jul 10, 2016

+1

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

Successfully merging this pull request may close these issues.

Not calling setUpClass
3 participants