Skip to content

Commit 0e93808

Browse files
pyup-botsliverc
andauthored
Scheduled biweekly dependency update for week 16 (#1062)
* Update black from 22.1.0 to 22.3.0 * Update sphinx from 4.4.0 to 4.5.0 * Update twine from 3.8.0 to 4.0.0 * Update faker from 13.0.0 to 13.3.4 * Update pytest from 7.0.1 to 7.1.1 * Update syrupy from 1.7.4 to 2.0.0 * Updated snapshots to newest amber format Co-authored-by: Oliver Sauder <[email protected]>
1 parent 73f7ed6 commit 0e93808

File tree

6 files changed

+106
-106
lines changed

6 files changed

+106
-106
lines changed
Lines changed: 85 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,133 +1,133 @@
11
# name: test_first_level_attribute_error
2-
<class 'dict'> {
3-
'errors': <class 'list'> [
4-
<class 'dict'> {
2+
dict({
3+
'errors': list([
4+
dict({
55
'code': 'required',
66
'detail': 'This field is required.',
7-
'source': <class 'dict'> {
7+
'source': dict({
88
'pointer': '/data/attributes/headline',
9-
},
9+
}),
1010
'status': '400',
11-
},
12-
],
13-
}
14-
---
11+
}),
12+
]),
13+
})
14+
# ---
1515
# name: test_first_level_custom_attribute_error
16-
<class 'dict'> {
17-
'errors': <class 'list'> [
18-
<class 'dict'> {
16+
dict({
17+
'errors': list([
18+
dict({
1919
'detail': 'Too short',
20-
'source': <class 'dict'> {
20+
'source': dict({
2121
'pointer': '/data/attributes/body-text',
22-
},
22+
}),
2323
'title': 'Too Short title',
24-
},
25-
],
26-
}
27-
---
24+
}),
25+
]),
26+
})
27+
# ---
2828
# name: test_many_third_level_dict_errors
29-
<class 'dict'> {
30-
'errors': <class 'list'> [
31-
<class 'dict'> {
29+
dict({
30+
'errors': list([
31+
dict({
3232
'code': 'required',
3333
'detail': 'This field is required.',
34-
'source': <class 'dict'> {
34+
'source': dict({
3535
'pointer': '/data/attributes/comments/0/attachment/data',
36-
},
36+
}),
3737
'status': '400',
38-
},
39-
<class 'dict'> {
38+
}),
39+
dict({
4040
'code': 'required',
4141
'detail': 'This field is required.',
42-
'source': <class 'dict'> {
42+
'source': dict({
4343
'pointer': '/data/attributes/comments/0/body',
44-
},
44+
}),
4545
'status': '400',
46-
},
47-
],
48-
}
49-
---
46+
}),
47+
]),
48+
})
49+
# ---
5050
# name: test_relationship_errors_has_correct_pointers
51-
<class 'dict'> {
52-
'errors': <class 'list'> [
53-
<class 'dict'> {
51+
dict({
52+
'errors': list([
53+
dict({
5454
'code': 'incorrect_type',
5555
'detail': 'Incorrect type. Expected resource identifier object, received str.',
56-
'source': <class 'dict'> {
56+
'source': dict({
5757
'pointer': '/data/relationships/author',
58-
},
58+
}),
5959
'status': '400',
60-
},
61-
],
62-
}
63-
---
60+
}),
61+
]),
62+
})
63+
# ---
6464
# name: test_second_level_array_error
65-
<class 'dict'> {
66-
'errors': <class 'list'> [
67-
<class 'dict'> {
65+
dict({
66+
'errors': list([
67+
dict({
6868
'code': 'required',
6969
'detail': 'This field is required.',
70-
'source': <class 'dict'> {
70+
'source': dict({
7171
'pointer': '/data/attributes/comments/0/body',
72-
},
72+
}),
7373
'status': '400',
74-
},
75-
],
76-
}
77-
---
74+
}),
75+
]),
76+
})
77+
# ---
7878
# name: test_second_level_dict_error
79-
<class 'dict'> {
80-
'errors': <class 'list'> [
81-
<class 'dict'> {
79+
dict({
80+
'errors': list([
81+
dict({
8282
'code': 'required',
8383
'detail': 'This field is required.',
84-
'source': <class 'dict'> {
84+
'source': dict({
8585
'pointer': '/data/attributes/comment/body',
86-
},
86+
}),
8787
'status': '400',
88-
},
89-
],
90-
}
91-
---
88+
}),
89+
]),
90+
})
91+
# ---
9292
# name: test_third_level_array_error
93-
<class 'dict'> {
94-
'errors': <class 'list'> [
95-
<class 'dict'> {
93+
dict({
94+
'errors': list([
95+
dict({
9696
'code': 'required',
9797
'detail': 'This field is required.',
98-
'source': <class 'dict'> {
98+
'source': dict({
9999
'pointer': '/data/attributes/comments/0/attachments/0/data',
100-
},
100+
}),
101101
'status': '400',
102-
},
103-
],
104-
}
105-
---
102+
}),
103+
]),
104+
})
105+
# ---
106106
# name: test_third_level_custom_array_error
107-
<class 'dict'> {
108-
'errors': <class 'list'> [
109-
<class 'dict'> {
107+
dict({
108+
'errors': list([
109+
dict({
110110
'code': 'invalid',
111111
'detail': 'Too short data',
112-
'source': <class 'dict'> {
112+
'source': dict({
113113
'pointer': '/data/attributes/comments/0/attachments/0/data',
114-
},
114+
}),
115115
'status': '400',
116-
},
117-
],
118-
}
119-
---
116+
}),
117+
]),
118+
})
119+
# ---
120120
# name: test_third_level_dict_error
121-
<class 'dict'> {
122-
'errors': <class 'list'> [
123-
<class 'dict'> {
121+
dict({
122+
'errors': list([
123+
dict({
124124
'code': 'required',
125125
'detail': 'This field is required.',
126-
'source': <class 'dict'> {
126+
'source': dict({
127127
'pointer': '/data/attributes/comments/0/attachment/data',
128-
},
128+
}),
129129
'status': '400',
130-
},
131-
],
132-
}
133-
---
130+
}),
131+
]),
132+
})
133+
# ---

example/tests/__snapshots__/test_openapi.ambr

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# name: test_delete_request
2-
'
2+
'''
33
{
44
"description": "",
55
"operationId": "destroy/authors/{id}",
@@ -63,10 +63,10 @@
6363
"authors"
6464
]
6565
}
66-
'
67-
---
66+
'''
67+
# ---
6868
# name: test_patch_request
69-
'
69+
'''
7070
{
7171
"description": "",
7272
"operationId": "update/authors/{id}",
@@ -245,10 +245,10 @@
245245
"authors"
246246
]
247247
}
248-
'
249-
---
248+
'''
249+
# ---
250250
# name: test_path_with_id_parameter
251-
'
251+
'''
252252
{
253253
"description": "",
254254
"operationId": "retrieve/authors/{id}/",
@@ -355,10 +355,10 @@
355355
"authors"
356356
]
357357
}
358-
'
359-
---
358+
'''
359+
# ---
360360
# name: test_path_without_parameters
361-
'
361+
'''
362362
{
363363
"description": "",
364364
"operationId": "List/authors/",
@@ -477,10 +477,10 @@
477477
"authors"
478478
]
479479
}
480-
'
481-
---
480+
'''
481+
# ---
482482
# name: test_post_request
483-
'
483+
'''
484484
{
485485
"description": "",
486486
"operationId": "create/authors/",
@@ -665,5 +665,5 @@
665665
"authors"
666666
]
667667
}
668-
'
669-
---
668+
'''
669+
# ---
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
black==22.1.0
1+
black==22.3.0
22
flake8==4.0.1
33
flake8-isort==4.1.1
44
isort==5.10.1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
recommonmark==0.7.1
2-
Sphinx==4.4.0
2+
Sphinx==4.5.0
33
sphinx_rtd_theme==1.0.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
twine==3.8.0
1+
twine==4.0.0

requirements/requirements-testing.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
django-debug-toolbar==3.2.4
22
factory-boy==3.2.1
3-
Faker==13.0.0
4-
pytest==7.0.1
3+
Faker==13.3.4
4+
pytest==7.1.1
55
pytest-cov==3.0.0
66
pytest-django==4.5.2
77
pytest-factoryboy==2.1.0
8-
syrupy==1.7.4
8+
syrupy==2.0.0

0 commit comments

Comments
 (0)