File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11# -*- encoding: utf-8 -*-
2- from __future__ import unicode_literals
32
43import factory
54from faker import Factory as FakerFactory
@@ -22,8 +21,7 @@ class Meta:
2221 name = factory .LazyAttribute (lambda x : faker .name ())
2322 email = factory .LazyAttribute (lambda x : faker .email ())
2423
25- bio = factory .RelatedFactory (b'example.factories.AuthorBioFactory' , 'author' )
26-
24+ bio = factory .RelatedFactory ('example.factories.AuthorBioFactory' , 'author' )
2725
2826class AuthorBioFactory (factory .django .DjangoModelFactory ):
2927 class Meta :
Original file line number Diff line number Diff line change 1414 drf33: djangorestframework>=3.3,<3.4
1515 -r{toxinidir}/requirements-development.txt
1616
17- setenv = DJANGO_SETTINGS_MODULE =example.settings.test
17+ setenv =
18+ PYTHONPATH = {toxinidir}
19+ DJANGO_SETTINGS_MODULE =example.settings.test
1820
1921commands =
2022 py.test --basetemp ={envtmpdir}
You can’t perform that action at this time.
0 commit comments