Prodeko / prodeko-org-djangocms

Prodeko's main website
https://prodeko.org
1 stars 3 forks source link

Some tests are skipped due to duplicate names #116

Open code-review-doctor opened 2 years ago

code-review-doctor commented 2 years ago

Test names must be unique per scope otherwise the second test overrides the first one with the same name.

For example if you had a test file that does:

def test_a():
    pass

def test_a():
    pass

Then only the second test_a will be ran. More details here.

These are the tests that are overriding previously defined tests due to this problem:

https://github.com/Prodeko/prodeko-org-djangocms/blob/d89994c45de83e5e16a0dcfbbfc790da64b71cee/prodekoorg/app_toimarit/tests/test_models.py#L179

I found this issue automatically, see other issues here