Skip to content

Commit 750c5d7

Browse files
authored
Merge pull request #3539 from hey-api/test/python-snapshots
test: add python snapshots
2 parents 0fc337f + ea667c5 commit 750c5d7

25 files changed

Lines changed: 2960 additions & 17 deletions

File tree

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"**/.mypy_cache": true,
2222
"**/__snapshots__": true,
2323
"**/coverage": true,
24+
"**/openapi-python-tests/**/.gen": true,
2425
"**/openapi-ts-tests/**/generated": true,
2526
"**/openapi-ts-tests/**/.gen": true,
2627
"**/*.tsbuildinfo": true

dev/inputs.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
import path from 'node:path';
22

3-
import { getSpecsPath } from '../packages/openapi-ts-tests/utils';
3+
const specsPath = path.join(__dirname, '..', 'specs');
44

55
export const inputs = {
6-
circular: path.resolve(getSpecsPath(), '3.0.x', 'circular.yaml'),
7-
full: path.resolve(getSpecsPath(), '3.1.x', 'full.yaml'),
6+
circular: path.resolve(specsPath, '3.0.x', 'circular.yaml'),
7+
full: path.resolve(specsPath, '3.1.x', 'full.yaml'),
88
local: 'http://localhost:8000/openapi.json',
9-
opencode: path.resolve(getSpecsPath(), '3.1.x', 'opencode.yaml'),
9+
opencode: path.resolve(specsPath, '3.1.x', 'opencode.yaml'),
1010
petstore:
1111
'https://raw.githubusercontent.com/swagger-api/swagger-petstore/master/src/main/resources/openapi.yaml',
1212
redfish:
1313
'https://raw.githubusercontent.com/DMTF/Redfish-Publications/refs/heads/main/openapi/openapi.yaml',
1414
scalar: 'scalar:@scalar/access-service',
15-
transformers: path.resolve(getSpecsPath(), '3.1.x', 'transformers.json'),
16-
validators: path.resolve(getSpecsPath(), '3.1.x', 'validators.yaml'),
15+
transformers: path.resolve(specsPath, '3.1.x', 'transformers.json'),
16+
validators: path.resolve(specsPath, '3.1.x', 'validators.yaml'),
1717
} as const;
1818

1919
export type InputKey = keyof typeof inputs;
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.DS_Store
2+
.idea
3+
.tsdown
4+
.tmp
5+
junit.xml
6+
logs
7+
node_modules
8+
npm-debug.log*
9+
temp
10+
yarn-debug.log*
11+
yarn-error.log*
12+
13+
*.iml
14+
dist
15+
coverage
16+
.env
17+
18+
# test files
19+
.gen/

0 commit comments

Comments
 (0)