Skip to content
This repository
Browse code

Fixing failing playhouse tests due to change in #99

  • Loading branch information...
commit df26c54210e42df5d087264c70e00ee381960a2e 1 parent 6ef067c
Charles Leifer authored July 14, 2012

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  playhouse/tests.py
8  playhouse/tests.py
@@ -15,10 +15,10 @@ class Meta:
15 15
         database = db
16 16
 
17 17
 class ModelA(BaseSignalModel):
18  
-    a = CharField()
  18
+    a = CharField(default='')
19 19
 
20 20
 class ModelB(BaseSignalModel):
21  
-    b = CharField()
  21
+    b = CharField(default='')
22 22
 
23 23
 class BaseSweepeaModel(sweepea.Model):
24 24
     class Meta:
@@ -54,7 +54,7 @@ class Meta:
54 54
 
55 55
 class User(BaseExtModel):
56 56
     username = CharField()
57  
-    password = CharField()
  57
+    password = CharField(default='')
58 58
 
59 59
 class Post(BaseExtModel):
60 60
     user = ForeignKeyField(User)
@@ -309,7 +309,7 @@ def pre_init(sender, instance):
309 309
             state.append((sender, instance.a))
310 310
 
311 311
         ModelA.get()
312  
-        self.assertEqual(state, [(ModelA, None)])
  312
+        self.assertEqual(state, [(ModelA, '')])
313 313
 
314 314
     def test_post_init(self):
315 315
         state = []

0 notes on commit df26c54

Please sign in to comment.
Something went wrong with that request. Please try again.