Skip to content

Commit

Permalink
[1.2.X] Converted initial_sql_regress tests from doctests (sort of...…
Browse files Browse the repository at this point in the history
…) to unittests. We have always been at war with doctests. Backport of [14179].

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14180 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
alex committed Oct 12, 2010
1 parent de8ff6b commit 9ab383b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/regressiontests/initial_sql_regress/models.py
Expand Up @@ -7,7 +7,5 @@
class Simple(models.Model):
name = models.CharField(max_length = 50)

__test__ = {'API_TESTS':""}

# NOTE: The format of the included SQL file for this test suite is important.
# It must end with a trailing newline in order to test the fix for #2161.
8 changes: 8 additions & 0 deletions tests/regressiontests/initial_sql_regress/tests.py
@@ -0,0 +1,8 @@
from django.test import TestCase

from models import Simple


class InitialSQLTests(TestCase):
def test_initial_sql(self):
self.assertEqual(Simple.objects.count(), 7)

0 comments on commit 9ab383b

Please sign in to comment.