All Projects → pytest-dev → Pytest Django

pytest-dev / Pytest Django

Licence: other
A Django plugin for pytest.

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects

Projects that are alternatives of or similar to Pytest Django

Wagtail Pipit
Pipit is a Wagtail CMS boilerplate which aims to provide an easy and modern developer workflow with a React-rendered frontend.
Stars: ✭ 109 (-87.5%)
Mutual labels:  django, pytest
Wemake Django Template
Bleeding edge django template focused on code quality and security.
Stars: ✭ 1,141 (+30.85%)
Mutual labels:  django, pytest
Usaspending Api
Server application to serve U.S. federal spending data via a RESTful API
Stars: ✭ 166 (-80.96%)
Mutual labels:  django, pytest
Education Backend
Django backend for my info-business website
Stars: ✭ 79 (-90.94%)
Mutual labels:  django, pytest
Django Test Migrations
Test django schema and data migrations, including migrations' order and best practices.
Stars: ✭ 188 (-78.44%)
Mutual labels:  django, pytest
Django Jenkins
Plug and play continuous integration with django and jenkins
Stars: ✭ 933 (+7%)
Mutual labels:  django
Adfs managers
This is site (web-app) to manage teams and statistic for ADFS
Stars: ✭ 10 (-98.85%)
Mutual labels:  django
Django apistar
Django App to integrate API Star's routes and views into Django's ecossystem.
Stars: ✭ 25 (-97.13%)
Mutual labels:  django
Ituscheduler
Create your ITU course schedules in fashion with up-to-date & detailed information.
Stars: ✭ 24 (-97.25%)
Mutual labels:  django
Palewi.re
The once and future blog
Stars: ✭ 12 (-98.62%)
Mutual labels:  django
Alexa Browser Client
Alexa client in your browser. Django app.
Stars: ✭ 12 (-98.62%)
Mutual labels:  django
Thecsebot
Bot user for the slack team of IIT Roorkee, CSE students batch of 2016-20
Stars: ✭ 9 (-98.97%)
Mutual labels:  django
Stcokvisualization
基于Django框架的Tushare股票数据可视化平台
Stars: ✭ 26 (-97.02%)
Mutual labels:  django
Django Ecommerce
An e-commerce website built with Django
Stars: ✭ 861 (-1.26%)
Mutual labels:  django
React Webpack Django
De-coupled ReactJS client for greater flexibility and less black-box Django magic
Stars: ✭ 24 (-97.25%)
Mutual labels:  django
Django Oml
Object Moderation Layer
Stars: ✭ 12 (-98.62%)
Mutual labels:  django
Django Hijack
With Django Hijack, admins can log in and work on behalf of other users without having to know their credentials.
Stars: ✭ 924 (+5.96%)
Mutual labels:  django
Heroku Buildpack Python
The official Heroku buildpack for Python apps.
Stars: ✭ 849 (-2.64%)
Mutual labels:  django
Django Controlcenter
Set of widgets to build dashboards for Django projects
Stars: ✭ 866 (-0.69%)
Mutual labels:  django
Hawkpost
Generate links that users can use to submit messages encrypted with your public key.
Stars: ✭ 843 (-3.33%)
Mutual labels:  django

.. image:: https://img.shields.io/pypi/v/pytest-django.svg?style=flat :alt: PyPI Version :target: https://pypi.python.org/pypi/pytest-django

.. image:: https://img.shields.io/pypi/pyversions/pytest-django.svg :alt: Supported Python versions :target: https://pypi.python.org/pypi/pytest-django

.. image:: https://github.com/pytest-dev/pytest-django/workflows/main/badge.svg :alt: Build Status :target: https://github.com/pytest-dev/pytest-django/actions

.. image:: https://img.shields.io/codecov/c/github/pytest-dev/pytest-django.svg?style=flat :alt: Coverage :target: https://codecov.io/gh/pytest-dev/pytest-django

Welcome to pytest-django!

pytest-django allows you to test your Django project/applications with the pytest testing tool <https://pytest.org/>_.

  • Quick start / tutorial <https://pytest-django.readthedocs.io/en/latest/tutorial.html>_

  • Changelog <https://pytest-django.readthedocs.io/en/latest/changelog.html>_

  • Full documentation: https://pytest-django.readthedocs.io/en/latest/

  • Contribution docs <https://pytest-django.readthedocs.io/en/latest/contributing.html>_

  • Version compatibility:

    • Django: 2.2, 3.0, 3.1 and latest main branch (compatible at the time of each release)
    • Python: CPython>=3.5 or PyPy 3
    • pytest: >=5.4

    For compatibility with older versions, use the pytest-django 3.. series.

  • Licence: BSD

  • Project maintainers: Andreas Pelme, Floris Bruynooghe and Daniel Hahler

  • All contributors <https://github.com/pytest-dev/pytest-django/contributors>_

  • GitHub repository: https://github.com/pytest-dev/pytest-django

  • Issue tracker <http://github.com/pytest-dev/pytest-django/issues>_

  • Python Package Index (PyPI) <https://pypi.python.org/pypi/pytest-django/>_

Install pytest-django

::

pip install pytest-django

Why would I use this instead of Django's manage.py test command?

Running your test suite with pytest-django allows you to tap into the features that are already present in pytest. Here are some advantages:

  • Manage test dependencies with pytest fixtures. <https://pytest.org/en/latest/fixture.html>_
  • Less boilerplate tests: no need to import unittest, create a subclass with methods. Write tests as regular functions.
  • Database re-use: no need to re-create the test database for every test run.
  • Run tests in multiple processes for increased speed (with the pytest-xdist plugin).
  • Make use of other pytest plugins <https://pytest.org/en/latest/plugins.html>_.
  • Works with both worlds: Existing unittest-style TestCase's still work without any modifications.

See the pytest documentation <https://pytest.org/en/latest/>_ for more information on pytest itself.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].