reordered the tests

moved the tests from the openslides-module to an own module
configured coverage
This commit is contained in:
Oskar Hahn 2012-11-24 15:00:17 +01:00
parent a4f28654c7
commit 6b2645d11c
8 changed files with 13 additions and 2 deletions

4
.coveragerc Normal file
View File

@ -0,0 +1,4 @@
[run]
source=openslides
[report]
exclude_lines = def __(unicode|repr)__

4
.gitignore vendored
View File

@ -12,3 +12,7 @@ docs/_build/*
build/*
dist/*
.DS_Store
# Unit test / coverage reports
.coverage
htmlcov

View File

@ -27,7 +27,7 @@ from openslides.utils.utils import html_strong
from openslides.projector.api import get_active_slide
from openslides.projector.projector import Widget, SLIDE
from .models import Item
from .agenda.forms import ItemOrderForm, ItemForm
from .forms import ItemOrderForm, ItemForm
class Overview(TemplateView):

View File

@ -139,3 +139,6 @@ CACHES = {
'LOCATION': 'openslidecache'
}
}
TEST_RUNNER = 'discover_runner.DiscoverRunner'
TEST_DISCOVER_TOP_LEVEL = os.path.dirname(os.path.dirname(__file__))

0
tests/__init__.py Normal file
View File

View File

@ -16,7 +16,7 @@ from django.db.models.query import EmptyQuerySet
from openslides.projector.api import get_active_slide
from openslides.participant.models import User
from .models import Item
from openslides.agenda.models import Item
class ItemTest(TestCase):