Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
anfema-django-testutils
Readme
The main intention of the anfema_django_testutils
app is to provide a Django test runner which considers
snapshot tests as well as code coverage and human-readable html test reports. Moreover, the test result
Precondition Failure
has been added.
This package integrates snapshottest as well as coverage.
anfema_django_testutils
is officially supported on:
$ pip install anfema-django-testutils
Update your Django settings.py
to use the anfema_django_testutils
test runner:
# settings.py
INSTALLED_APPS = [
...
"mathfilters",
"anfema_django_testutils",
]
TEST_RUNNER = "anfema_django_testutils.runner.TestRunner"
For further information see the anfema_django_testutils
documentation.
For writing test cases use the anfema_django_testutils.testcases.TestCase
rather than the django.test.TestCase
:
# app/tests.py
from anfema_django_testutils.testcases import TestCase
class CustomTest(TestCase):
...
To generate the anfema_django_testutils
documentation from the local sources, run in a terminal:
$ pip install tox
$ tox -e docs -- docs/build
To execute the anfema_django_testutils
tests, run in a terminal:
$ pip install tox
$ tox
Licensed under the MIT-clause license; see LICENSE
for details.
FAQs
Testrunner for django which covers html report and code coverage
We found that anfema-django-testutils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.