I want to write a gherkin-like test using pytest-bdd to create a common set of test data for some features. I couldn't use given to add multiple rows because "given step has already been used". What's the right way to do this?
I tried this:
Background:
Given a user with Clerk privileges
And a household entry for "Alice" with SubmissionDate "Nov 26, 2019 3:59:50 pm"
And a household entry for "Bill" with SubmissionDate "Nov 27, 2019 3:59:50 pm"
This fails with the message:
E pytest_bdd.exceptions.GivenAlreadyUsed:
Fixture "add_household" that implements this
"a household entry for "Bill" with SubmissionDate "Nov 27, 2019 3:59:50 pm""
given step has been already used.