adamv avatar adamv committed d8e2dd2

Tweak dbsettings to not create an additional test database; remove null Boolean field test since models now validate that Boolean fields can't be Null.

Comments (0)

Files changed (2)

tests/dbsettings.py

 DATABASE_PORT = ''
 DATABASE_NAME = r'django_test_backend'
 
+# Don't create a test database; use use the name above.
+TEST_DATABASE_CREATE = False
+
 # Use integrated auth.
 DATABASE_USER = ''
 DATABASE_PASSWORD = ''

tests/test_main/nulls/models.py

 class TableNullDate(BaseModel):
     val = models.DateField(null=True)
 
-class TableNullBoolean(BaseModel):
-    val = models.BooleanField(null=True)
-
 class TableNullNullBoolean(BaseModel):
     val = models.NullBooleanField(null=True)
 
     def testBoolean(self):
         self._run(TableNullNullBoolean, (None, True, False))
 
-    def testNullBoolean(self):
-        self._run(TableNullBoolean, (None, True, False))
-
     def testFloat(self):
         self._run(TableNullFloat, (None, 34.3))
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.