From 7a4f3289a3c4e91931d7489f9a2d55d3ed521f92 Mon Sep 17 00:00:00 2001 From: pyup-bot Date: Mon, 18 Apr 2022 18:07:03 +0400 Subject: [PATCH 1/7] Update black from 22.1.0 to 22.3.0 --- requirements/requirements-codestyle.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/requirements-codestyle.txt b/requirements/requirements-codestyle.txt index c5664ddb..e0660b38 100644 --- a/requirements/requirements-codestyle.txt +++ b/requirements/requirements-codestyle.txt @@ -1,4 +1,4 @@ -black==22.1.0 +black==22.3.0 flake8==4.0.1 flake8-isort==4.1.1 isort==5.10.1 From 60dbee5f26777aede423c3cd639c6fa35cc4e8fc Mon Sep 17 00:00:00 2001 From: pyup-bot Date: Mon, 18 Apr 2022 18:07:03 +0400 Subject: [PATCH 2/7] Update sphinx from 4.4.0 to 4.5.0 --- requirements/requirements-documentation.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/requirements-documentation.txt b/requirements/requirements-documentation.txt index 9c9e2db0..8b4ae902 100644 --- a/requirements/requirements-documentation.txt +++ b/requirements/requirements-documentation.txt @@ -1,3 +1,3 @@ recommonmark==0.7.1 -Sphinx==4.4.0 +Sphinx==4.5.0 sphinx_rtd_theme==1.0.0 From 4de13d741f5a875ef221bb42ff9daf147bbfba07 Mon Sep 17 00:00:00 2001 From: pyup-bot Date: Mon, 18 Apr 2022 18:07:04 +0400 Subject: [PATCH 3/7] Update twine from 3.8.0 to 4.0.0 --- requirements/requirements-packaging.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/requirements-packaging.txt b/requirements/requirements-packaging.txt index f9d2c8fd..4d384665 100644 --- a/requirements/requirements-packaging.txt +++ b/requirements/requirements-packaging.txt @@ -1 +1 @@ -twine==3.8.0 +twine==4.0.0 From ae31323356bddedfc12534df841ac9c51d502ce8 Mon Sep 17 00:00:00 2001 From: pyup-bot Date: Mon, 18 Apr 2022 18:07:04 +0400 Subject: [PATCH 4/7] Update faker from 13.0.0 to 13.3.4 --- requirements/requirements-testing.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/requirements-testing.txt b/requirements/requirements-testing.txt index 934e5ad6..a50f4276 100644 --- a/requirements/requirements-testing.txt +++ b/requirements/requirements-testing.txt @@ -1,6 +1,6 @@ django-debug-toolbar==3.2.4 factory-boy==3.2.1 -Faker==13.0.0 +Faker==13.3.4 pytest==7.0.1 pytest-cov==3.0.0 pytest-django==4.5.2 From 1e7d5ec1f996e3a61d592aa7e987f401d6ed80b8 Mon Sep 17 00:00:00 2001 From: pyup-bot Date: Mon, 18 Apr 2022 18:07:04 +0400 Subject: [PATCH 5/7] Update pytest from 7.0.1 to 7.1.1 --- requirements/requirements-testing.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/requirements-testing.txt b/requirements/requirements-testing.txt index a50f4276..906a5402 100644 --- a/requirements/requirements-testing.txt +++ b/requirements/requirements-testing.txt @@ -1,7 +1,7 @@ django-debug-toolbar==3.2.4 factory-boy==3.2.1 Faker==13.3.4 -pytest==7.0.1 +pytest==7.1.1 pytest-cov==3.0.0 pytest-django==4.5.2 pytest-factoryboy==2.1.0 From 87d5814efb82dd543a8f577991538d4cce2858fb Mon Sep 17 00:00:00 2001 From: pyup-bot Date: Mon, 18 Apr 2022 18:07:05 +0400 Subject: [PATCH 6/7] Update syrupy from 1.7.4 to 2.0.0 --- requirements/requirements-testing.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/requirements-testing.txt b/requirements/requirements-testing.txt index 906a5402..81186b70 100644 --- a/requirements/requirements-testing.txt +++ b/requirements/requirements-testing.txt @@ -5,4 +5,4 @@ pytest==7.1.1 pytest-cov==3.0.0 pytest-django==4.5.2 pytest-factoryboy==2.1.0 -syrupy==1.7.4 +syrupy==2.0.0 From f663478648fd779ce9345938d211865ff82d30ba Mon Sep 17 00:00:00 2001 From: Oliver Sauder Date: Fri, 22 Apr 2022 22:28:23 +0400 Subject: [PATCH 7/7] Updated snapshots to newest amber format --- example/tests/__snapshots__/test_errors.ambr | 170 +++++++++--------- example/tests/__snapshots__/test_openapi.ambr | 30 ++-- 2 files changed, 100 insertions(+), 100 deletions(-) diff --git a/example/tests/__snapshots__/test_errors.ambr b/example/tests/__snapshots__/test_errors.ambr index d025fd4e..1ef85ab8 100644 --- a/example/tests/__snapshots__/test_errors.ambr +++ b/example/tests/__snapshots__/test_errors.ambr @@ -1,133 +1,133 @@ # name: test_first_level_attribute_error - { - 'errors': [ - { + dict({ + 'errors': list([ + dict({ 'code': 'required', 'detail': 'This field is required.', - 'source': { + 'source': dict({ 'pointer': '/data/attributes/headline', - }, + }), 'status': '400', - }, - ], - } ---- + }), + ]), + }) +# --- # name: test_first_level_custom_attribute_error - { - 'errors': [ - { + dict({ + 'errors': list([ + dict({ 'detail': 'Too short', - 'source': { + 'source': dict({ 'pointer': '/data/attributes/body-text', - }, + }), 'title': 'Too Short title', - }, - ], - } ---- + }), + ]), + }) +# --- # name: test_many_third_level_dict_errors - { - 'errors': [ - { + dict({ + 'errors': list([ + dict({ 'code': 'required', 'detail': 'This field is required.', - 'source': { + 'source': dict({ 'pointer': '/data/attributes/comments/0/attachment/data', - }, + }), 'status': '400', - }, - { + }), + dict({ 'code': 'required', 'detail': 'This field is required.', - 'source': { + 'source': dict({ 'pointer': '/data/attributes/comments/0/body', - }, + }), 'status': '400', - }, - ], - } ---- + }), + ]), + }) +# --- # name: test_relationship_errors_has_correct_pointers - { - 'errors': [ - { + dict({ + 'errors': list([ + dict({ 'code': 'incorrect_type', 'detail': 'Incorrect type. Expected resource identifier object, received str.', - 'source': { + 'source': dict({ 'pointer': '/data/relationships/author', - }, + }), 'status': '400', - }, - ], - } ---- + }), + ]), + }) +# --- # name: test_second_level_array_error - { - 'errors': [ - { + dict({ + 'errors': list([ + dict({ 'code': 'required', 'detail': 'This field is required.', - 'source': { + 'source': dict({ 'pointer': '/data/attributes/comments/0/body', - }, + }), 'status': '400', - }, - ], - } ---- + }), + ]), + }) +# --- # name: test_second_level_dict_error - { - 'errors': [ - { + dict({ + 'errors': list([ + dict({ 'code': 'required', 'detail': 'This field is required.', - 'source': { + 'source': dict({ 'pointer': '/data/attributes/comment/body', - }, + }), 'status': '400', - }, - ], - } ---- + }), + ]), + }) +# --- # name: test_third_level_array_error - { - 'errors': [ - { + dict({ + 'errors': list([ + dict({ 'code': 'required', 'detail': 'This field is required.', - 'source': { + 'source': dict({ 'pointer': '/data/attributes/comments/0/attachments/0/data', - }, + }), 'status': '400', - }, - ], - } ---- + }), + ]), + }) +# --- # name: test_third_level_custom_array_error - { - 'errors': [ - { + dict({ + 'errors': list([ + dict({ 'code': 'invalid', 'detail': 'Too short data', - 'source': { + 'source': dict({ 'pointer': '/data/attributes/comments/0/attachments/0/data', - }, + }), 'status': '400', - }, - ], - } ---- + }), + ]), + }) +# --- # name: test_third_level_dict_error - { - 'errors': [ - { + dict({ + 'errors': list([ + dict({ 'code': 'required', 'detail': 'This field is required.', - 'source': { + 'source': dict({ 'pointer': '/data/attributes/comments/0/attachment/data', - }, + }), 'status': '400', - }, - ], - } ---- + }), + ]), + }) +# --- diff --git a/example/tests/__snapshots__/test_openapi.ambr b/example/tests/__snapshots__/test_openapi.ambr index cb03ca73..fb8c2abe 100644 --- a/example/tests/__snapshots__/test_openapi.ambr +++ b/example/tests/__snapshots__/test_openapi.ambr @@ -1,5 +1,5 @@ # name: test_delete_request - ' + ''' { "description": "", "operationId": "destroy/authors/{id}", @@ -63,10 +63,10 @@ "authors" ] } - ' ---- + ''' +# --- # name: test_patch_request - ' + ''' { "description": "", "operationId": "update/authors/{id}", @@ -245,10 +245,10 @@ "authors" ] } - ' ---- + ''' +# --- # name: test_path_with_id_parameter - ' + ''' { "description": "", "operationId": "retrieve/authors/{id}/", @@ -355,10 +355,10 @@ "authors" ] } - ' ---- + ''' +# --- # name: test_path_without_parameters - ' + ''' { "description": "", "operationId": "List/authors/", @@ -477,10 +477,10 @@ "authors" ] } - ' ---- + ''' +# --- # name: test_post_request - ' + ''' { "description": "", "operationId": "create/authors/", @@ -665,5 +665,5 @@ "authors" ] } - ' ---- + ''' +# ---