Changeset - 109d23889f37
[Not reviewed]
default
1 1 5
Branko Majic (branko) - 11 years ago 2013-06-25 20:37:22
branko@majic.rs
Enabled Django Discover Runner for running tests. Moved the tests under its own subdirectory.
6 files changed with 6 insertions and 1 deletions:
0 comments (0 inline, 0 general)
conntrackt/tests/__init__.py
Show inline comments
 
new file 100644
conntrackt/tests/test_forms.py
Show inline comments
 
new file 100644
conntrackt/tests/test_iptables.py
Show inline comments
 
file renamed from conntrackt/tests.py to conntrackt/tests/test_iptables.py
 
@@ -2,7 +2,7 @@
 
from django.test import TestCase
 

	
 
# Application imports.
 
import iptables
 
from conntrackt import iptables
 

	
 

	
 
class RuleTest(TestCase):
conntrackt/tests/test_models.py
Show inline comments
 
new file 100644
conntrackt/tests/test_views.py
Show inline comments
 
new file 100644
projtest/projtest/settings.py
Show inline comments
 
@@ -131,6 +131,8 @@ INSTALLED_APPS = (
 
    'south',
 
    # Generic mixins for Django.
 
    'braces',
 
    # Enable test-runner.
 
    'discover_runner',
 
)
 

	
 
# A sample logging configuration. The only tangible logging
 
@@ -164,3 +166,6 @@ LOGGING = {
 

	
 
# View that should be called for log-in action.
 
LOGIN_URL="login"
 

	
 
# Use custom test runner.
 
TEST_RUNNER = 'discover_runner.DiscoverRunner'
0 comments (0 inline, 0 general)