A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://django-treebeard.readthedocs.io/en/latest/tests.html below:

Website Navigation


Running the Test Suite — django-treebeard 4.7 documentation

Running the Test Suite

django-treebeard includes a comprehensive test suite. It is highly recommended that you run and update the test suite when you send patches.

pytest

You will need pytest to run the test suite:

Then just run the test suite:

You can use all the features and plugins of pytest this way.

By default the test suite will run using a sqlite3 database in RAM, but you can change this setting environment variables:

DATABASE_USER
DATABASE_PASSWORD
DATABASE_HOST
DATABASE_USER_POSTGRES
DATABASE_PORT_POSTGRES
DATABASE_USER_MYSQL
DATABASE_PORT_MYSQL

Sets the database settings to be used by the test suite. Useful if you want to test the same database engine/version you use in production.

tox

django-treebeard uses tox to run the test suite in all the supported environments - permutations of:

This means that there are a lot of permutations, which takes a long time. If you want to test only one or a few environments, use the -e option in tox, like:

$ tox -e py39-dj32-postgres

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4