Parcourir la source

Fix unit tests

Jocelyn Delande il y a 9 ans
Parent
commit
4223790a5b
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      wifiwithme/apps/contribmap/tests.py

+ 2 - 1
wifiwithme/apps/contribmap/tests.py

@@ -23,7 +23,8 @@ class APITestCase(TestCase):
 
 class TestContrib(TestCase):
     def test_comma_separatedcharfield(self):
-        co = Contrib(name='foo', orientations=['SO', 'NE'])
+        co = Contrib(name='foo', orientations=['SO', 'NE'],
+                     contrib_type=Contrib.CONTRIB_CONNECT)
         co.save()
         self.assertEqual(
             Contrib.objects.get(name='foo').orientations,