Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
django-taggit
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fddd0627
authored
Apr 05, 2014
by
Trey Hunner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test that default South configuration raises error
parent
8f055c05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
tests/tests.py
+13
-3
No files found.
tests/tests.py
View file @
fddd0627
...
@@ -2,13 +2,13 @@ from __future__ import unicode_literals, absolute_import
...
@@ -2,13 +2,13 @@ from __future__ import unicode_literals, absolute_import
from
unittest
import
TestCase
as
UnitTestCase
from
unittest
import
TestCase
as
UnitTestCase
try
:
try
:
from
unittest
import
skipIf
from
unittest
import
skipIf
,
skipUnless
except
:
except
:
from
django.utils.unittest
import
skipIf
from
django.utils.unittest
import
skipIf
,
skipUnless
import
django
import
django
from
django.conf
import
settings
from
django.conf
import
settings
from
django.core.exceptions
import
ValidationError
from
django.core.exceptions
import
ImproperlyConfigured
,
ValidationError
from
django.core
import
serializers
from
django.core
import
serializers
from
django.db
import
connection
from
django.db
import
connection
from
django.test
import
TestCase
,
TransactionTestCase
from
django.test
import
TestCase
,
TransactionTestCase
...
@@ -560,3 +560,13 @@ class DeconstructTestCase(UnitTestCase):
...
@@ -560,3 +560,13 @@ class DeconstructTestCase(UnitTestCase):
name
,
path
,
args
,
kwargs
=
instance
.
deconstruct
()
name
,
path
,
args
,
kwargs
=
instance
.
deconstruct
()
new_instance
=
TaggableManager
(
*
args
,
**
kwargs
)
new_instance
=
TaggableManager
(
*
args
,
**
kwargs
)
self
.
assertEqual
(
instance
.
rel
.
through
,
new_instance
.
rel
.
through
)
self
.
assertEqual
(
instance
.
rel
.
through
,
new_instance
.
rel
.
through
)
@skipUnless
(
django
.
VERSION
<
(
1
,
7
),
"test only applies to 1.6 and below"
)
class
SouthSupportTests
(
TestCase
):
def
test_import_migrations_module
(
self
):
try
:
from
taggit.migrations
import
__doc__
# noqa
except
ImproperlyConfigured
as
e
:
exception
=
e
self
.
assertIn
(
"SOUTH_MIGRATION_MODULES"
,
exception
.
args
[
0
])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment