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
 
# Django imports.
 
from django.test import TestCase
 

	
 
# Application imports.
 
import iptables
 
from conntrackt import iptables
 

	
 

	
 
class RuleTest(TestCase):
 
    def test_output_case(self):
 
        """
 
        Test that protocol name is lower-cased during rule generation.
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
 
@@ -128,12 +128,14 @@ INSTALLED_APPS = (
 
    # Enable the conntrackt application
 
    'conntrackt',
 
    # Database migrations
 
    'south',
 
    # Generic mixins for Django.
 
    'braces',
 
    # Enable test-runner.
 
    'discover_runner',
 
)
 

	
 
# A sample logging configuration. The only tangible logging
 
# performed by this configuration is to send an email to
 
# the site admins on every HTTP 500 error when DEBUG=False.
 
# See http://docs.djangoproject.com/en/dev/topics/logging for
 
@@ -161,6 +163,9 @@ 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)