Skip to content
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.
Pavel Studeník edited this page Aug 28, 2015 · 2 revisions

Currently the project contains only few tests for check quality.

Run existing tests

You can run all tests for the project

python manage.py test

or you can choose and run only a test:

python manage.py test [model-name-of-test]

for example I run test for check beaker provisioning:

python manage.py test apps.core.tests.BeakerTest

How to create new test

Create new file to model directory with name tests.py a start write ;)

from django.test import TestCase
class SimpleTest(TestCase):

    def test_basic_addition(self):
        """
        Tests that 1 + 1 always equals 2.
        """
        self.assertEqual(1 + 1, 2)
Clone this wiki locally