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.15.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

behave_django_steps-0.7.15-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file behave_django_steps-0.7.15.tar.gz.

File metadata

  • Download URL: behave_django_steps-0.7.15.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for behave_django_steps-0.7.15.tar.gz
Algorithm Hash digest
SHA256 4533ea6a744da0502bb3a5f5adbf04b3d621c02ca4d519a4428127286ef96437
MD5 bad8d9dddff6df733e4ac73b140f7d33
BLAKE2b-256 2624b3d1ad4c213449cfbfe84b483afbcdef25aa8783b668390118df62a4d16e

See more details on using hashes here.

File details

Details for the file behave_django_steps-0.7.15-py3-none-any.whl.

File metadata

File hashes

Hashes for behave_django_steps-0.7.15-py3-none-any.whl
Algorithm Hash digest
SHA256 10ea60ef72a063a36de5b34cd999789594283850bc9c9d4faa5d6b9b40004755
MD5 d45b09e88bcdf4cee2c2380a20a9cf02
BLAKE2b-256 915493d5ca2c6a4420ff6161e1313a2a56f34b82cbc25e2e100ef92d14d9fb4f

See more details on using hashes here.

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