a2b8dee022
Fill bds.models with the required fields; add migration scripts, and a stupid unittests that checks the model really works. Note: old fields will migrate to datetime.now().
12 lines
351 B
Python
12 lines
351 B
Python
from django.test import TestCase
|
|
|
|
from gestion.tests import create_profile
|
|
|
|
from .models import BdsProfile
|
|
|
|
class TestBdsProfile(TestCase):
|
|
def test_profile(self):
|
|
# each bdspofile should have an associated profile
|
|
p = create_profile('foo')
|
|
bdsp = BdsProfile.objects.create(profile=p)
|
|
self.assertEqual(p.bds, bdsp)
|