Skip to content

BillSchumacher/behave-django-steps

Repository files navigation

behave-django-steps

Coverage Status

Reduce boilerplate in your behave steps for Django.

Features

Authentication Steps: authentication.feature

Authorization Steps: authorization.feature

Model Steps: models.feature

Performance Steps: queries.feature

Request Steps: requests.feature

Caveats

When loading auth.Permission fixtures you must consider that Django automatically creates basic permissions for models.

If you're trying to load custom permissions after writing the Permission.json fixture you need to delete the default permissions from the fixture, or json.loads it and filter on only your custom permissions.

Because the permission was already created by Django, if you try to load it you will get an IntegrityError.