You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It can be defined in any file that will be imported by lettuce.
But lettuce documentation should tell to use it at terrain.py
examples:
from lettuce.terrain import before
from lettuce.terrain import after
@before.all
def populate_database(scenario):
from my_models import Person
Person(name="John Doe").save()
@after.all
def reset_database(scenario):
from my_models import Person
Person.delete_all()
The text was updated successfully, but these errors were encountered:
It can be defined in any file that will be imported by lettuce.
But lettuce documentation should tell to use it at
terrain.py
examples:
from lettuce.terrain import before
from lettuce.terrain import after
The text was updated successfully, but these errors were encountered: