Skip to content

Commit

Permalink
Fixed SapelliProjectFactory class
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius O committed Dec 9, 2015
1 parent 01dbb45 commit 15513a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions geokey_sapelli/tests/model_factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_image(file_name='test.png', width=200, height=200):
return the_file


class SapelliProjectFactoryactory(factory.django.DjangoModelFactory):
class SapelliProjectFactory(factory.django.DjangoModelFactory):
class Meta:
model = SapelliProject

Expand All @@ -47,7 +47,7 @@ class Meta:
model = SapelliForm

category = factory.SubFactory(CategoryFactory)
sapelli_project = factory.SubFactory(SapelliProjectFactoryactory)
sapelli_project = factory.SubFactory(SapelliProjectFactory)
sapelli_id = factory.Sequence(lambda n: 'Form %s' % n)


Expand Down Expand Up @@ -149,7 +149,7 @@ def create_full_project(user):
'name': 'Dog Bin'
})

project = SapelliProjectFactoryactory.create(**{'project': geokey_project})
project = SapelliProjectFactory.create(**{'project': geokey_project})
form = SapelliFormFactory.create(**{
'category': geokey_cat,
'sapelli_project': project,
Expand Down

0 comments on commit 15513a1

Please sign in to comment.