From aa6710baa8f37d8f258fee4716e0ecfcabc5a6bb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 29 Oct 2022 10:31:53 +0000 Subject: [PATCH 1/2] chore(deps): bump syrupy from 1.5.0 to 3.0.2 in /pipelines/requirements Bumps [syrupy](https://github.com/tophat/syrupy) from 1.5.0 to 3.0.2. - [Release notes](https://github.com/tophat/syrupy/releases) - [Changelog](https://github.com/tophat/syrupy/blob/master/CHANGELOG.md) - [Commits](https://github.com/tophat/syrupy/compare/v1.5.0...v3.0.2) --- updated-dependencies: - dependency-name: syrupy dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- pipelines/requirements/test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipelines/requirements/test.txt b/pipelines/requirements/test.txt index 9a059b279..e956c849f 100644 --- a/pipelines/requirements/test.txt +++ b/pipelines/requirements/test.txt @@ -5,5 +5,5 @@ mock==4.0.3 pytest-mock==3.6.1 pytest-asyncio==0.17.0 pytest-subprocess==1.1.2 -syrupy==1.5.0 +syrupy==3.0.2 fastapi==0.73.0 From 19dbb543997aca2990009e8191f1208fc6c8224c Mon Sep 17 00:00:00 2001 From: Robert Craigie Date: Sat, 29 Oct 2022 11:57:21 +0100 Subject: [PATCH 2/2] Update snapshots per syrupy breaking change https://github.com/tophat/syrupy/pull/505 --- tests/__snapshots__/test_builder.ambr | 48 +- tests/__snapshots__/test_group_by.ambr | 424 +++++++++--------- tests/__snapshots__/test_validator.ambr | 28 +- .../test_async[actions.py].raw | 4 +- .../test_async[builder.py].raw | 4 +- .../test_exhaustive/test_async[client.py].raw | 4 +- .../test_async[engineabstract.py].raw | 4 +- .../test_async[enginehttp.py].raw | 4 +- .../test_async[enginequery.py].raw | 4 +- .../test_exhaustive/test_async[enums.py].raw | 4 +- .../test_exhaustive/test_async[fields.py].raw | 4 +- .../test_exhaustive/test_async[http.py].raw | 4 +- .../test_exhaustive/test_async[models.py].raw | 4 +- .../test_async[partials.py].raw | 4 +- .../test_exhaustive/test_async[types.py].raw | 4 +- .../test_exhaustive/test_sync[actions.py].raw | 4 +- .../test_exhaustive/test_sync[builder.py].raw | 4 +- .../test_exhaustive/test_sync[client.py].raw | 4 +- .../test_sync[engineabstract.py].raw | 4 +- .../test_sync[enginehttp.py].raw | 4 +- .../test_sync[enginequery.py].raw | 4 +- .../test_exhaustive/test_sync[enums.py].raw | 4 +- .../test_exhaustive/test_sync[fields.py].raw | 4 +- .../test_exhaustive/test_sync[http.py].raw | 4 +- .../test_exhaustive/test_sync[models.py].raw | 4 +- .../test_sync[partials.py].raw | 4 +- .../test_exhaustive/test_sync[types.py].raw | 4 +- .../test_types/__snapshots__/test_compat.ambr | 86 ++-- 28 files changed, 341 insertions(+), 341 deletions(-) diff --git a/tests/__snapshots__/test_builder.ambr b/tests/__snapshots__/test_builder.ambr index b6e7e646f..49d0f3fdb 100644 --- a/tests/__snapshots__/test_builder.ambr +++ b/tests/__snapshots__/test_builder.ambr @@ -1,5 +1,5 @@ # name: test_basic_building - ' + ''' query { result: findUniqueUser ( @@ -14,10 +14,10 @@ created_at } } - ' ---- + ''' +# --- # name: test_basic_building.1 - ' + ''' mutation { result: queryRaw ( @@ -26,10 +26,10 @@ } ) } - ' ---- + ''' +# --- # name: test_custom_serialization - ' + ''' query { result: findUniquePost ( @@ -48,10 +48,10 @@ author_id } } - ' ---- + ''' +# --- # name: test_datetime_serialization_tz_aware - ' + ''' query { result: findUniquePost ( @@ -70,10 +70,10 @@ author_id } } - ' ---- + ''' +# --- # name: test_datetime_serialization_tz_unaware - ' + ''' query { result: findUniquePost ( @@ -92,10 +92,10 @@ author_id } } - ' ---- + ''' +# --- # name: test_include_with_arguments - ' + ''' query { result: findUniqueUser ( @@ -125,10 +125,10 @@ } } } - ' ---- + ''' +# --- # name: test_raw_queries - ' + ''' mutation { result: queryRaw ( @@ -136,10 +136,10 @@ parameters: "[\"1263526\"]" ) } - ' ---- + ''' +# --- # name: test_unicode - ' + ''' query { result: findUniqueUser ( @@ -154,5 +154,5 @@ created_at } } - ' ---- + ''' +# --- diff --git a/tests/__snapshots__/test_group_by.ambr b/tests/__snapshots__/test_group_by.ambr index 4d19b3650..5824dd9f8 100644 --- a/tests/__snapshots__/test_group_by.ambr +++ b/tests/__snapshots__/test_group_by.ambr @@ -1,318 +1,318 @@ # name: test_avg - [ - { - '_avg': { + list([ + dict({ + '_avg': dict({ 'views': 700.0, - }, + }), 'country': 'Denmark', - }, - { - '_avg': { + }), + dict({ + '_avg': dict({ 'views': 250.0, - }, + }), 'country': 'Scotland', - }, - ] ---- + }), + ]) +# --- # name: test_avg.1 - [ - { - '_avg': { + list([ + dict({ + '_avg': dict({ 'bigint': 0.0, 'integer': 4.5, - }, + }), 'string': '', - }, - ] ---- + }), + ]) +# --- # name: test_count - [ - { - '_count': { + list([ + dict({ + '_count': dict({ '_all': 20, - }, + }), 'country': 'Denmark', - }, - { - '_count': { + }), + dict({ + '_count': dict({ '_all': 1, - }, + }), 'country': 'Scotland', - }, - ] ---- + }), + ]) +# --- # name: test_count.1 - [ - { - '_count': { + list([ + dict({ + '_count': dict({ '_all': 20, - }, + }), 'country': 'Denmark', - }, - { - '_count': { + }), + dict({ + '_count': dict({ '_all': 1, - }, + }), 'country': 'Scotland', - }, - ] ---- + }), + ]) +# --- # name: test_count.2 - [ - { - '_count': { + list([ + dict({ + '_count': dict({ 'city': 8, - }, + }), 'country': 'Denmark', - }, - { - '_count': { + }), + dict({ + '_count': dict({ 'city': 1, - }, + }), 'country': 'Scotland', - }, - ] ---- + }), + ]) +# --- # name: test_count.3 - [ - { - '_count': { + list([ + dict({ + '_count': dict({ 'city': 8, 'country': 20, - }, + }), 'country': 'Denmark', - }, - { - '_count': { + }), + dict({ + '_count': dict({ 'city': 1, 'country': 1, - }, + }), 'country': 'Scotland', - }, - ] ---- + }), + ]) +# --- # name: test_docs_example - [ - { - '_count': { + list([ + dict({ + '_count': dict({ '_all': 1, 'city': 1, - }, - '_sum': { + }), + '_sum': dict({ 'views': 250, - }, + }), 'city': 'Edinburgh', 'country': 'Scotland', - }, - { - '_count': { + }), + dict({ + '_count': dict({ '_all': 12, 'city': 0, - }, - '_sum': { + }), + '_sum': dict({ 'views': 6000, - }, + }), 'city': None, 'country': 'Denmark', - }, - { - '_count': { + }), + dict({ + '_count': dict({ '_all': 8, 'city': 8, - }, - '_sum': { + }), + '_sum': dict({ 'views': 8000, - }, + }), 'city': 'Copenhagen', 'country': 'Denmark', - }, - ] ---- + }), + ]) +# --- # name: test_group_by - [ - { + list([ + dict({ 'name': 'Robert', - }, - { + }), + dict({ 'name': 'Tegan', - }, - ] ---- + }), + ]) +# --- # name: test_group_by.1 - [ - { + list([ + dict({ 'country': 'Denmark', - }, - { + }), + dict({ 'country': 'Scotland', - }, - ] ---- + }), + ]) +# --- # name: test_having_aggregation - [ - { - '_count': { + list([ + dict({ + '_count': dict({ '_all': 20, - }, + }), 'country': 'Denmark', - }, - ] ---- + }), + ]) +# --- # name: test_having_aggregation.1 - [ - { - '_count': { + list([ + dict({ + '_count': dict({ '_all': 1, - }, + }), 'country': 'Scotland', - }, - ] ---- + }), + ]) +# --- # name: test_having_aggregation_nested - [ - { - '_count': { + list([ + dict({ + '_count': dict({ '_all': 1, - }, + }), 'country': 'Scotland', - }, - ] ---- + }), + ]) +# --- # name: test_having_aggregation_nested.1 - [ - { - '_count': { + list([ + dict({ + '_count': dict({ '_all': 20, - }, + }), 'country': 'Denmark', - }, - { - '_count': { + }), + dict({ + '_count': dict({ '_all': 1, - }, + }), 'country': 'Scotland', - }, - ] ---- + }), + ]) +# --- # name: test_having_aggregation_nested.2 - [ - { - '_count': { + list([ + dict({ + '_count': dict({ '_all': 20, - }, + }), 'country': 'Denmark', - }, - ] ---- + }), + ]) +# --- # name: test_max - [ - { - '_max': { + list([ + dict({ + '_max': dict({ 'views': 1000, - }, + }), 'country': 'Denmark', - }, - { - '_max': { + }), + dict({ + '_max': dict({ 'views': 250, - }, + }), 'country': 'Scotland', - }, - ] ---- + }), + ]) +# --- # name: test_min - [ - { - '_min': { + list([ + dict({ + '_min': dict({ 'views': 500, - }, + }), 'country': 'Denmark', - }, - { - '_min': { + }), + dict({ + '_min': dict({ 'views': 250, - }, + }), 'country': 'Scotland', - }, - ] ---- + }), + ]) +# --- # name: test_order[asc] - [ - { + list([ + dict({ 'country': 'Denmark', - }, - { + }), + dict({ 'country': 'Scotland', - }, - ] ---- + }), + ]) +# --- # name: test_order[desc] - [ - { + list([ + dict({ 'country': 'Scotland', - }, - { + }), + dict({ 'country': 'Denmark', - }, - ] ---- + }), + ]) +# --- # name: test_order_list - [ - { + list([ + dict({ 'city': 'Copenhagen', 'country': 'Denmark', - }, - { + }), + dict({ 'city': None, 'country': 'Denmark', - }, - { + }), + dict({ 'city': 'Edinburgh', 'country': 'Scotland', - }, - ] ---- + }), + ]) +# --- # name: test_skip[asc] - [ - { + list([ + dict({ 'country': 'Scotland', - }, - ] ---- + }), + ]) +# --- # name: test_skip[desc] - [ - { + list([ + dict({ 'country': 'Denmark', - }, - ] ---- + }), + ]) +# --- # name: test_sum - [ - { - '_sum': { + list([ + dict({ + '_sum': dict({ 'views': 14000, - }, + }), 'country': 'Denmark', - }, - { - '_sum': { + }), + dict({ + '_sum': dict({ 'views': 250, - }, + }), 'country': 'Scotland', - }, - ] ---- + }), + ]) +# --- # name: test_take[asc] - [ - { + list([ + dict({ 'country': 'Denmark', - }, - ] ---- + }), + ]) +# --- # name: test_take[desc] - [ - { + list([ + dict({ 'country': 'Scotland', - }, - ] ---- + }), + ]) +# --- diff --git a/tests/__snapshots__/test_validator.ambr b/tests/__snapshots__/test_validator.ambr index 0f482a5de..c9606fa07 100644 --- a/tests/__snapshots__/test_validator.ambr +++ b/tests/__snapshots__/test_validator.ambr @@ -1,5 +1,5 @@ # name: test_disallows_extra_values - ' + ''' 3 validation errors for PostCreateInput title field required (type=value_error.missing) @@ -7,32 +7,32 @@ field required (type=value_error.missing) foo extra fields not permitted (type=value_error.extra) - ' ---- + ''' +# --- # name: test_disallows_non_typeddict_type "Only TypedDict types are supported, got: instead." ---- +# --- # name: test_disallows_non_typeddict_type.1 "Only TypedDict types are supported, got: instead." ---- +# --- # name: test_missing_values - ' + ''' 2 validation errors for PostCreateInput title field required (type=value_error.missing) published field required (type=value_error.missing) - ' ---- + ''' +# --- # name: test_non_dictionary_values - ' + ''' 1 validation error for UserCreateInput __root__ UserCreateInput expected dict not NoneType (type=type_error) - ' ---- + ''' +# --- # name: test_recursive - ' + ''' 4 validation errors for FloatFilter not value is not a valid float (type=type_error.float) @@ -42,5 +42,5 @@ value is not a valid float (type=type_error.float) not -> not -> not -> __root__ FloatFilterRecursive3 expected dict not str (type=type_error) - ' ---- + ''' +# --- diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[actions.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[actions.py].raw index 7ca2f1bfd..92c75d25d 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[actions.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[actions.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -11210,4 +11210,4 @@ def _select_fields(root: str, select: Mapping[str, Any]) -> str: from . import models -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[builder.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[builder.py].raw index bec829e6f..35c889477 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[builder.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[builder.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -918,4 +918,4 @@ def dumps(obj: Any, **kwargs: Any) -> str: # black does not respect the fmt: off comment without this # fmt: on -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[client.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[client.py].raw index bac3568d8..d1e36f665 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[client.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[client.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -1878,4 +1878,4 @@ class EBatchActions: Client = Prisma -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[engineabstract.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[engineabstract.py].raw index 06ff9fac5..92460c067 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[engineabstract.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[engineabstract.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -92,4 +92,4 @@ class AbstractEngine(ABC): } """ ... -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[enginehttp.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[enginehttp.py].raw index 859143e12..d8fbe0390 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[enginehttp.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[enginehttp.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -120,4 +120,4 @@ class HTTPEngine(AbstractEngine): # black does not respect the fmt: off comment without this # fmt: on -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[enginequery.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[enginequery.py].raw index 3e4e13ca4..37dbde74b 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[enginequery.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[enginequery.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -196,4 +196,4 @@ class QueryEngine(HTTPEngine): # black does not respect the fmt: off comment without this # fmt: on -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[enums.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[enums.py].raw index 6d7094b3f..bf825a55e 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[enums.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[enums.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -44,4 +44,4 @@ class ABeautifulEnum(str, Enum): C = 'C' -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[fields.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[fields.py].raw index d5e9d4091..81e83c131 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[fields.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[fields.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -181,4 +181,4 @@ class Base64: from .types import Serializable -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[http.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[http.py].raw index 744a1ca5d..9772d6dce 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[http.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[http.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -41,4 +41,4 @@ from ._async_http import ( client as client, ) -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[models.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[models.py].raw index 50d667442..bc6d77a2e 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[models.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[models.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -2455,4 +2455,4 @@ C.update_forward_refs() D.update_forward_refs() E.update_forward_refs() -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[partials.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[partials.py].raw index 447c8812f..5ab749ecf 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[partials.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[partials.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -47,4 +47,4 @@ from . import partials # fmt: on -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[types.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[types.py].raw index c4c2c32f5..8856e01ef 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[types.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[types.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -15409,4 +15409,4 @@ ERelationalFieldKeys = _NoneType # we have to import ourselves as types can be namespaced to types from . import types, enums, models, fields -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[actions.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[actions.py].raw index 971598177..f4525a390 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[actions.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[actions.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -11210,4 +11210,4 @@ def _select_fields(root: str, select: Mapping[str, Any]) -> str: from . import models -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[builder.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[builder.py].raw index bec829e6f..35c889477 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[builder.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[builder.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -918,4 +918,4 @@ def dumps(obj: Any, **kwargs: Any) -> str: # black does not respect the fmt: off comment without this # fmt: on -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[client.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[client.py].raw index 35a426b60..3bb4d6e9d 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[client.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[client.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -1877,4 +1877,4 @@ class EBatchActions: Client = Prisma -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[engineabstract.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[engineabstract.py].raw index ce201bb2e..538eee7fd 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[engineabstract.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[engineabstract.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -92,4 +92,4 @@ class AbstractEngine(ABC): } """ ... -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[enginehttp.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[enginehttp.py].raw index 4ae2402ae..438407ad1 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[enginehttp.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[enginehttp.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -120,4 +120,4 @@ class HTTPEngine(AbstractEngine): # black does not respect the fmt: off comment without this # fmt: on -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[enginequery.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[enginequery.py].raw index 738bf39f7..44d641f4d 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[enginequery.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[enginequery.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -197,4 +197,4 @@ class QueryEngine(HTTPEngine): # black does not respect the fmt: off comment without this # fmt: on -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[enums.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[enums.py].raw index 6d7094b3f..bf825a55e 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[enums.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[enums.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -44,4 +44,4 @@ class ABeautifulEnum(str, Enum): C = 'C' -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[fields.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[fields.py].raw index d5e9d4091..81e83c131 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[fields.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[fields.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -181,4 +181,4 @@ class Base64: from .types import Serializable -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[http.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[http.py].raw index c1ff0aa60..7d77a7792 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[http.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[http.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -41,4 +41,4 @@ from ._sync_http import ( client as client, ) -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[models.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[models.py].raw index 50d667442..bc6d77a2e 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[models.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[models.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -2455,4 +2455,4 @@ C.update_forward_refs() D.update_forward_refs() E.update_forward_refs() -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[partials.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[partials.py].raw index 447c8812f..5ab749ecf 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[partials.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[partials.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -47,4 +47,4 @@ from . import partials # fmt: on -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[types.py].raw b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[types.py].raw index c4c2c32f5..8856e01ef 100644 --- a/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[types.py].raw +++ b/tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[types.py].raw @@ -1,4 +1,4 @@ -' +''' # -*- coding: utf-8 -*- # code generated by Prisma. DO NOT EDIT. # pyright: reportUnusedImport=false @@ -15409,4 +15409,4 @@ ERelationalFieldKeys = _NoneType # we have to import ourselves as types can be namespaced to types from . import types, enums, models, fields -' \ No newline at end of file +''' \ No newline at end of file diff --git a/tests/test_types/__snapshots__/test_compat.ambr b/tests/test_types/__snapshots__/test_compat.ambr index 9f165271a..7040e7f95 100644 --- a/tests/test_types/__snapshots__/test_compat.ambr +++ b/tests/test_types/__snapshots__/test_compat.ambr @@ -1,85 +1,85 @@ # name: test_json_schema_compatible - { + dict({ 'description': 'Represents a Types record', - 'properties': { - 'bigint': { + 'properties': dict({ + 'bigint': dict({ 'title': 'Bigint', 'type': 'integer', - }, - 'bool_': { + }), + 'bool_': dict({ 'title': 'Bool ', 'type': 'boolean', - }, - 'bytes': { + }), + 'bytes': dict({ 'format': 'byte', 'title': 'Bytes', 'type': 'string', - }, - 'datetime_': { + }), + 'datetime_': dict({ 'format': 'date-time', 'title': 'Datetime ', 'type': 'string', - }, - 'decimal_': { + }), + 'decimal_': dict({ 'title': 'Decimal ', 'type': 'number', - }, - 'float_': { + }), + 'float_': dict({ 'title': 'Float ', 'type': 'number', - }, - 'id': { + }), + 'id': dict({ 'title': 'Id', 'type': 'integer', - }, - 'integer': { + }), + 'integer': dict({ 'title': 'Integer', 'type': 'integer', - }, - 'optional_bigint': { + }), + 'optional_bigint': dict({ 'title': 'Optional Bigint', 'type': 'integer', - }, - 'optional_bool': { + }), + 'optional_bool': dict({ 'title': 'Optional Bool', 'type': 'boolean', - }, - 'optional_bytes': { + }), + 'optional_bytes': dict({ 'format': 'byte', 'title': 'Optional Bytes', 'type': 'string', - }, - 'optional_datetime': { + }), + 'optional_datetime': dict({ 'format': 'date-time', 'title': 'Optional Datetime', 'type': 'string', - }, - 'optional_decimal': { + }), + 'optional_decimal': dict({ 'title': 'Optional Decimal', 'type': 'number', - }, - 'optional_float': { + }), + 'optional_float': dict({ 'title': 'Optional Float', 'type': 'number', - }, - 'optional_int': { + }), + 'optional_int': dict({ 'title': 'Optional Int', 'type': 'integer', - }, - 'optional_integer': { + }), + 'optional_integer': dict({ 'title': 'Optional Integer', 'type': 'integer', - }, - 'optional_string': { + }), + 'optional_string': dict({ 'title': 'Optional String', 'type': 'string', - }, - 'string': { + }), + 'string': dict({ 'title': 'String', 'type': 'string', - }, - }, - 'required': [ + }), + }), + 'required': list([ 'id', 'bool_', 'string', @@ -89,8 +89,8 @@ 'float_', 'datetime_', 'decimal_', - ], + ]), 'title': 'Types', 'type': 'object', - } ---- + }) +# ---