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

Adtect similar asserts in tests #2

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

Adtect similar asserts in tests #2

Melevir opened this issue May 12, 2020 · 0 comments

Comments

@Melevir
Copy link
Contributor

Melevir commented May 12, 2020

This is quite often usecase for test of simple function:

def test_foo_success_case():
    assert foo('a') == 1
    assert foo('b') == 2
    assert foo('c') == 3

We should mark such tests as error. They should be rewritten with parametrize.

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

1 participant