Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 15ef04f

Browse files
committed
Adopt to updated versions
1 parent b320c41 commit 15ef04f

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

example/factories.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class Meta:
3737

3838
class 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:
4950
class 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:
6971
class 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:
130133
class 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)

example/tests/__snapshots__/test_errors.ambr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# serializer version: 1
12
# name: test_first_level_attribute_error
23
dict({
34
'errors': list([

example/tests/__snapshots__/test_openapi.ambr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# serializer version: 1
12
# name: test_delete_request
23
'''
34
{

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
7174
testpaths =
7275
example
7376
tests

0 commit comments

Comments
 (0)