Skip to content

An example Django + Django Rest Framework project with best practise testing with pytest

Notifications You must be signed in to change notification settings

dimakozlov/django-drf-testing

 
 

Repository files navigation

Build Status CircleCI Codeship Status for cameronmaske/django-drf-testing

Testing Django Rest Framework

Local development

Running the server

To run the API, set up a .env file in the root directory of the project containing the following environment variables:

Then to start the server locally, run:

docker-compose up

The API would now be available at http://localdocker:5000

Manage.py

docker-compose run api python manage.py <command>

Running tests

To run tests locally, use the following command:

docker-compose run api pytest tests/

About

An example Django + Django Rest Framework project with best practise testing with pytest

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.7%
  • Dockerfile 4.2%
  • Shell 2.1%