Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

UniqueKeyValidation error for pytest.mark.parametrize using session fixture #3

Open
gh-PonyM opened this issue Aug 13, 2019 · 0 comments

Comments

@gh-PonyM
Copy link

Test to reproduce using model Election from onegov.ballot in onegov.election:
@pytest.mark.parametrize('dummy', [1,2]) def test_duplicate_id(session, dummy): election = Election(id='xxx') session.add(election) session.flush()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant