Skip to content

Commit

Permalink
Added system test for management command
Browse files Browse the repository at this point in the history
  • Loading branch information
coagulant committed Apr 11, 2012
1 parent fcb68d6 commit 7f2a660
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ App to figure out where your visitors are from by their IP address.

Tha app is early alpha, beware.

Docs: http://readthedocs.org/docs/django-geoip/en/latest/
Docs: http://django-geoip.readthedocs.org/
2 changes: 1 addition & 1 deletion test_app/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
ROOT_URLCONF = 'test_app.urls'
INSTALLED_APPS = ('django_nose', 'django_geoip', 'test_app')
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
#NOSE_ARGS = ["-a'!system'"]
NOSE_ARGS = ["-a!system"]
12 changes: 6 additions & 6 deletions tests/test_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ def test_update_cidr(self):
check_against_ranges)


#@attr('system')
#class IpGeoBaseSystemTest(TestCase):
#
# def test_whole_management_command(self):
# from django.core import management
# management.call_command('geoip_update', verbosity=0, interactive=False)
@attr('system')
class IpGeoBaseSystemTest(TestCase):

def test_whole_management_command(self):
from django.core import management
management.call_command('geoip_update', verbosity=0, interactive=False)

0 comments on commit 7f2a660

Please sign in to comment.