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:
3737
3838class AuthorFactory (factory .django .DjangoModelFactory ):
3939 class Meta :
40+ skip_postgeneration_save = True
4041 model = Author
4142
4243 name = factory .LazyAttribute (lambda x : faker .name ())
@@ -49,6 +50,7 @@ class Meta:
4950class AuthorBioFactory (factory .django .DjangoModelFactory ):
5051 class Meta :
5152 model = AuthorBio
53+ skip_postgeneration_save = True
5254
5355 author = factory .SubFactory (AuthorFactory )
5456 body = factory .LazyAttribute (lambda x : faker .text ())
@@ -69,6 +71,7 @@ class Meta:
6971class EntryFactory (factory .django .DjangoModelFactory ):
7072 class Meta :
7173 model = Entry
74+ skip_postgeneration_save = True
7275
7376 headline = factory .LazyAttribute (lambda x : faker .sentence (nb_words = 4 ))
7477 body_text = factory .LazyAttribute (lambda x : faker .text ())
@@ -130,6 +133,7 @@ class Meta:
130133class CompanyFactory (factory .django .DjangoModelFactory ):
131134 class Meta :
132135 model = Company
136+ skip_postgeneration_save = True
133137
134138 name = factory .LazyAttribute (lambda x : faker .company ())
135139 current_project = factory .SubFactory (ArtProjectFactory )
Original file line number Diff line number Diff line change 1+ # serializer version: 1
12# name: test_first_level_attribute_error
23 dict({
34 'errors': list([
Original file line number Diff line number Diff line change 1+ # serializer version: 1
12# name: test_delete_request
23 '''
34 {
Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ filterwarnings =
6868 # can be removed once fixed in django polymorphic
6969 ignore:pkg_resources is deprecated as an API
7070 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.
7174testpaths =
7275 example
7376 tests
You can’t perform that action at this time.
0 commit comments