Skip to content

Commit 25f871e

Browse files
committed
update snapshots
1 parent 3143728 commit 25f871e

3 files changed

Lines changed: 3 additions & 32 deletions

File tree

tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_async[client.py].raw

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,10 @@ __all__ = (
6161

6262
log: logging.Logger = logging.getLogger(__name__)
6363

64-
SCHEMA_PATH = Path('<absolute-schema-path>')
64+
SCHEMA_PATH = Path('<absolute-schema-path>') # fmt: skip
6565
PACKAGED_SCHEMA_PATH = Path(__file__).parent.joinpath('schema.prisma')
6666
ENGINE_TYPE: EngineType = EngineType.binary
6767
BINARY_PATHS = '<binary-paths-removed>'
68-
BinaryPaths,
69-
{
70-
'queryEngine': {
71-
'debian-openssl-3.0.x': '/home/reinier/.cache/prisma-python/binaries/5.19.0/5fe21811a6ba0b952a3bc71400666511fe3b902f/node_modules/prisma/query-engine-debian-openssl-3.0.x'
72-
},
73-
'introspectionEngine': {},
74-
'migrationEngine': {},
75-
'libqueryEngine': {},
76-
'prismaFmt': {},
77-
},
78-
)
7968

8069

8170
class Prisma(AsyncBasePrisma):

tests/test_generation/exhaustive/__snapshots__/test_exhaustive/test_sync[client.py].raw

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,10 @@ __all__ = (
6161

6262
log: logging.Logger = logging.getLogger(__name__)
6363

64-
SCHEMA_PATH = Path('<absolute-schema-path>')
64+
SCHEMA_PATH = Path('<absolute-schema-path>') # fmt: skip
6565
PACKAGED_SCHEMA_PATH = Path(__file__).parent.joinpath('schema.prisma')
6666
ENGINE_TYPE: EngineType = EngineType.binary
6767
BINARY_PATHS = '<binary-paths-removed>'
68-
BinaryPaths,
69-
{
70-
'queryEngine': {
71-
'debian-openssl-3.0.x': '/home/reinier/.cache/prisma-python/binaries/5.19.0/5fe21811a6ba0b952a3bc71400666511fe3b902f/node_modules/prisma/query-engine-debian-openssl-3.0.x'
72-
},
73-
'introspectionEngine': {},
74-
'migrationEngine': {},
75-
'libqueryEngine': {},
76-
'prismaFmt': {},
77-
},
78-
)
7968

8069

8170
class Prisma(SyncBasePrisma):

tests/test_generation/exhaustive/test_exhaustive.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def get_generated_type_files(output_dir: Path) -> List[str]:
8686
'schema.prisma',
8787
]
8888
THIS_DIR = Path(__file__).parent
89-
BINARY_PATH_RE = re.compile(r'BINARY_PATHS = (.*)')
89+
BINARY_PATH_RE = re.compile(r'BINARY_PATHS = ([\s\S]*?[}\n]\))')
9090

9191

9292
def path_replacer(
@@ -109,13 +109,6 @@ def path_str_matcher(data: object, path: object) -> Optional[object]:
109109
# TODO: support running snapshot tests on windows
110110

111111

112-
def get_all_generated_files(output_dir: Path) -> List[str]:
113-
"""Get all files to test including dynamically generated type files"""
114-
files = list(TEMPLATE_FILES) # Copy the static list
115-
files.extend(get_generated_type_files(output_dir))
116-
return files
117-
118-
119112
@skipif_windows
120113
@pytest.mark.parametrize('file', TEMPLATE_FILES)
121114
def test_sync(snapshot: SnapshotAssertion, file: str) -> None:

0 commit comments

Comments
 (0)