diff --git a/README.md b/README.md index d83d5ba..0c90fed 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![](https://img.shields.io/pypi/v/django-admin-interface.svg?color=blue&logo=pypi&logoColor=white)](https://pypi.org/project/django-admin-interface/) [![](https://pepy.tech/badge/django-admin-interface)](https://pepy.tech/project/django-admin-interface) [![](https://img.shields.io/github/stars/fabiocaccamo/django-admin-interface?logo=github)](https://github.com/fabiocaccamo/django-admin-interface/) -[![](https://badges.pufler.dev/visits/fabiocaccamo/django-admin-interface?label=views&color=blue)](https://badges.pufler.dev) +[![](https://badges.pufler.dev/visits/fabiocaccamo/django-admin-interface?label=visitors&color=blue)](https://badges.pufler.dev) [![](https://img.shields.io/pypi/l/django-admin-interface.svg?color=blue)](https://github.com/fabiocaccamo/django-admin-interface/blob/master/LICENSE.txt) [![](https://img.shields.io/travis/fabiocaccamo/django-admin-interface?logo=travis&label=build)](https://travis-ci.org/fabiocaccamo/django-admin-interface) @@ -105,6 +105,28 @@ You can add a theme you've created through the admin to this repository by [send You can use [django-apptemplates](https://github.com/bittner/django-apptemplates), then add `{% extends "admin_interface:admin/base_site.html" %}` to your `base_site.html` +## Testing +```bash +# create python virtual environment +virtualenv testing_django_admin_interface + +# activate virtualenv +cd testing_django_admin_interface && . bin/activate + +# clone repo +git clone https://github.com/fabiocaccamo/django-admin-interface.git src && cd src + +# install dependencies +pip install -r requirements.txt + +# run tests +tox +# or +python setup.py test +# or +python -m django test --settings "tests.settings" +``` + --- ## License