reordered the tests
moved the tests from the openslides-module to an own module configured coverage
This commit is contained in:
parent
a4f28654c7
commit
6b2645d11c
4
.coveragerc
Normal file
4
.coveragerc
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[run]
|
||||||
|
source=openslides
|
||||||
|
[report]
|
||||||
|
exclude_lines = def __(unicode|repr)__
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -12,3 +12,7 @@ docs/_build/*
|
|||||||
build/*
|
build/*
|
||||||
dist/*
|
dist/*
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
# Unit test / coverage reports
|
||||||
|
.coverage
|
||||||
|
htmlcov
|
||||||
|
@ -27,7 +27,7 @@ from openslides.utils.utils import html_strong
|
|||||||
from openslides.projector.api import get_active_slide
|
from openslides.projector.api import get_active_slide
|
||||||
from openslides.projector.projector import Widget, SLIDE
|
from openslides.projector.projector import Widget, SLIDE
|
||||||
from .models import Item
|
from .models import Item
|
||||||
from .agenda.forms import ItemOrderForm, ItemForm
|
from .forms import ItemOrderForm, ItemForm
|
||||||
|
|
||||||
|
|
||||||
class Overview(TemplateView):
|
class Overview(TemplateView):
|
||||||
|
@ -139,3 +139,6 @@ CACHES = {
|
|||||||
'LOCATION': 'openslidecache'
|
'LOCATION': 'openslidecache'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST_RUNNER = 'discover_runner.DiscoverRunner'
|
||||||
|
TEST_DISCOVER_TOP_LEVEL = os.path.dirname(os.path.dirname(__file__))
|
||||||
|
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
@ -16,7 +16,7 @@ from django.db.models.query import EmptyQuerySet
|
|||||||
|
|
||||||
from openslides.projector.api import get_active_slide
|
from openslides.projector.api import get_active_slide
|
||||||
from openslides.participant.models import User
|
from openslides.participant.models import User
|
||||||
from .models import Item
|
from openslides.agenda.models import Item
|
||||||
|
|
||||||
|
|
||||||
class ItemTest(TestCase):
|
class ItemTest(TestCase):
|
Loading…
Reference in New Issue
Block a user