File tree Expand file tree Collapse file tree 4 files changed +9
-0
lines changed Expand file tree Collapse file tree 4 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ class Meta:
37
37
38
38
class AuthorFactory (factory .django .DjangoModelFactory ):
39
39
class Meta :
40
+ skip_postgeneration_save = True
40
41
model = Author
41
42
42
43
name = factory .LazyAttribute (lambda x : faker .name ())
@@ -49,6 +50,7 @@ class Meta:
49
50
class AuthorBioFactory (factory .django .DjangoModelFactory ):
50
51
class Meta :
51
52
model = AuthorBio
53
+ skip_postgeneration_save = True
52
54
53
55
author = factory .SubFactory (AuthorFactory )
54
56
body = factory .LazyAttribute (lambda x : faker .text ())
@@ -69,6 +71,7 @@ class Meta:
69
71
class EntryFactory (factory .django .DjangoModelFactory ):
70
72
class Meta :
71
73
model = Entry
74
+ skip_postgeneration_save = True
72
75
73
76
headline = factory .LazyAttribute (lambda x : faker .sentence (nb_words = 4 ))
74
77
body_text = factory .LazyAttribute (lambda x : faker .text ())
@@ -130,6 +133,7 @@ class Meta:
130
133
class CompanyFactory (factory .django .DjangoModelFactory ):
131
134
class Meta :
132
135
model = Company
136
+ skip_postgeneration_save = True
133
137
134
138
name = factory .LazyAttribute (lambda x : faker .company ())
135
139
current_project = factory .SubFactory (ArtProjectFactory )
Original file line number Diff line number Diff line change
1
+ # serializer version: 1
1
2
# name: test_first_level_attribute_error
2
3
dict({
3
4
'errors': list([
Original file line number Diff line number Diff line change
1
+ # serializer version: 1
1
2
# name: test_delete_request
2
3
'''
3
4
{
Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ filterwarnings =
68
68
# can be removed once fixed in django polymorphic
69
69
ignore:pkg_resources is deprecated as an API
70
70
ignore:Deprecated call to `pkg_resource
71
+ # Django filter schema generation. Can be removed once we remove
72
+ # schema support
73
+ ignore:Built-in schema generation is deprecated.
71
74
testpaths =
72
75
example
73
76
tests
You can’t perform that action at this time.
0 commit comments