Skip to main content

Boilerplate steps for testing Django with Behave

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

behave_django_steps-0.7.13.tar.gz (13.9 kB view hashes)

Uploaded Source

Built Distribution

behave_django_steps-0.7.13-py3-none-any.whl (17.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page