Skip to content

Commit

Permalink
Update test infrastructure, allow py.test
Browse files Browse the repository at this point in the history
  • Loading branch information
vdboor committed Aug 22, 2016
1 parent 05c76c1 commit 4fa667a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
@@ -0,0 +1,3 @@
[run]
source = ./
omit = */migrations/*
5 changes: 5 additions & 0 deletions pytest.ini
@@ -0,0 +1,5 @@
[pytest]
norecursedirs = node_modules
DJANGO_SETTINGS_MODULE = {{ project_name }}.settings.env.unittest
python_files=test*
python_classes=Test*
3 changes: 1 addition & 2 deletions runtests.py
@@ -1,14 +1,13 @@
#!/usr/bin/env python
import sys
import os
from django.conf import settings
from django.core.management import execute_from_command_line

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings.env.unittest")

TEST_APPS = [
'apps',
'apps', # also takes subfolders
'frontend',
]

Expand Down

0 comments on commit 4fa667a

Please sign in to comment.