File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
# -*- encoding: utf-8 -*-
2
- from __future__ import unicode_literals
3
2
4
3
import factory
5
4
from faker import Factory as FakerFactory
@@ -22,8 +21,7 @@ class Meta:
22
21
name = factory .LazyAttribute (lambda x : faker .name ())
23
22
email = factory .LazyAttribute (lambda x : faker .email ())
24
23
25
- bio = factory .RelatedFactory (b'example.factories.AuthorBioFactory' , 'author' )
26
-
24
+ bio = factory .RelatedFactory ('example.factories.AuthorBioFactory' , 'author' )
27
25
28
26
class AuthorBioFactory (factory .django .DjangoModelFactory ):
29
27
class Meta :
Original file line number Diff line number Diff line change 14
14
drf33: djangorestframework>=3.3,<3.4
15
15
-r{toxinidir}/requirements-development.txt
16
16
17
- setenv = DJANGO_SETTINGS_MODULE =example.settings.test
17
+ setenv =
18
+ PYTHONPATH = {toxinidir}
19
+ DJANGO_SETTINGS_MODULE =example.settings.test
18
20
19
21
commands =
20
22
py.test --basetemp ={envtmpdir}
You can’t perform that action at this time.
0 commit comments