We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b7c27c commit dd79175Copy full SHA for dd79175
1 file changed
docs/tutorial.rst
@@ -636,15 +636,17 @@ To skip the step if `To be or not to be` quote could not be found:
636
def found_n_quotes_in_the_db(step, number):
637
if not hasattr(step.context, "result"):
638
step.skip()
639
+ return
640
641
assert len(step.context.result) == number
642
643
step.context.database.delete_id = step.context.result[0]['id']
644
- @then("I expect {number:g} quote in the database")
645
- def expect_amount_of_quotes(step, number):
+ @then("I delete one of them")
646
+ def delete_one_quote(step):
647
648
649
650
651
assert an_internal_function_to_delete_db_row(step.context.database.delete_id) is True
652
0 commit comments