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

Check, that test are not joined in classess #1

Open
Melevir opened this issue May 12, 2020 · 2 comments
Open

Check, that test are not joined in classess #1

Melevir opened this issue May 12, 2020 · 2 comments

Comments

@Melevir
Copy link
Contributor

Melevir commented May 12, 2020

In unittest tests are joined inside TestCase class. This is unittest practice, not pytest.

We should check, that all defs inside test files are in root, not inside class definition.

@cleder
Copy link

cleder commented Feb 24, 2022

@Melevir pytestmay have test classes as well,

class TestFeature:
    def setup_method(self):

@Melevir
Copy link
Contributor Author

Melevir commented Mar 5, 2022

This is not known as common pytest practice, so it makes sense to validate it.

Anyway, I'm not maintaining the project anymore. All questions and proposals are up to @korneevm :)

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