Made some additional smalltime-corrections
This commit is contained in:
parent
0ecc6aaefe
commit
245cdcb93c
@ -311,6 +311,8 @@ paths:
|
|||||||
$ref: '#/components/responses/400'
|
$ref: '#/components/responses/400'
|
||||||
'401':
|
'401':
|
||||||
$ref: '#/components/responses/401'
|
$ref: '#/components/responses/401'
|
||||||
|
'404':
|
||||||
|
$ref: '#/components/responses/404'
|
||||||
'500':
|
'500':
|
||||||
$ref: '#/components/responses/500'
|
$ref: '#/components/responses/500'
|
||||||
'503':
|
'503':
|
||||||
@ -414,6 +416,8 @@ paths:
|
|||||||
$ref: '#/components/responses/400'
|
$ref: '#/components/responses/400'
|
||||||
'401':
|
'401':
|
||||||
$ref: '#/components/responses/401'
|
$ref: '#/components/responses/401'
|
||||||
|
'404':
|
||||||
|
$ref: '#/components/responses/404'
|
||||||
'500':
|
'500':
|
||||||
$ref: '#/components/responses/500'
|
$ref: '#/components/responses/500'
|
||||||
'503':
|
'503':
|
||||||
@ -439,6 +443,8 @@ paths:
|
|||||||
$ref: '#/components/responses/400'
|
$ref: '#/components/responses/400'
|
||||||
'401':
|
'401':
|
||||||
$ref: '#/components/responses/401'
|
$ref: '#/components/responses/401'
|
||||||
|
'404':
|
||||||
|
$ref: '#/components/responses/404'
|
||||||
'500':
|
'500':
|
||||||
$ref: '#/components/responses/500'
|
$ref: '#/components/responses/500'
|
||||||
'503':
|
'503':
|
||||||
@ -630,6 +636,8 @@ paths:
|
|||||||
$ref: '#/components/responses/400'
|
$ref: '#/components/responses/400'
|
||||||
'401':
|
'401':
|
||||||
$ref: '#/components/responses/401'
|
$ref: '#/components/responses/401'
|
||||||
|
'404':
|
||||||
|
$ref: '#/components/responses/404'
|
||||||
'500':
|
'500':
|
||||||
$ref: '#/components/responses/500'
|
$ref: '#/components/responses/500'
|
||||||
'503':
|
'503':
|
||||||
@ -654,6 +662,8 @@ paths:
|
|||||||
$ref: '#/components/responses/400'
|
$ref: '#/components/responses/400'
|
||||||
'401':
|
'401':
|
||||||
$ref: '#/components/responses/401'
|
$ref: '#/components/responses/401'
|
||||||
|
'404':
|
||||||
|
$ref: '#/components/responses/404'
|
||||||
'500':
|
'500':
|
||||||
$ref: '#/components/responses/500'
|
$ref: '#/components/responses/500'
|
||||||
'503':
|
'503':
|
||||||
@ -671,7 +681,8 @@ paths:
|
|||||||
required: false
|
required: false
|
||||||
description: '**Id of participant**. *Example: 7*. Id of logged in participant.'
|
description: '**Id of participant**. *Example: 7*. Id of logged in participant.'
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/participant_id'
|
type: integer
|
||||||
|
example: 7
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: notification list
|
description: notification list
|
||||||
@ -1403,6 +1414,7 @@ components:
|
|||||||
type: integer
|
type: integer
|
||||||
nullable: true
|
nullable: true
|
||||||
example: 1234567
|
example: 1234567
|
||||||
|
description: International Maritime Organization number, must be unique across all ships
|
||||||
callsign:
|
callsign:
|
||||||
type: string
|
type: string
|
||||||
maxLength: 8
|
maxLength: 8
|
||||||
@ -2035,8 +2047,8 @@ components:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/Error'
|
$ref: '#/components/schemas/Error'
|
||||||
example:
|
example:
|
||||||
error_field: shipcall_id
|
error_field: No such record
|
||||||
error_description: Ship call not found
|
error_description: The requested resource to update was not found
|
||||||
'500':
|
'500':
|
||||||
description: Unexpected error
|
description: Unexpected error
|
||||||
content:
|
content:
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
import pytest
|
import pytest
|
||||||
import schemathesis
|
import schemathesis
|
||||||
|
from schemathesis import checks
|
||||||
|
|
||||||
schema = schemathesis.openapi.from_path(
|
schema = schemathesis.openapi.from_path(
|
||||||
"../../../misc/BreCalApi.yaml",
|
"../../../misc/BreCalApi.yaml",
|
||||||
@ -27,5 +28,8 @@ def test_api_conformance(
|
|||||||
response = case.call(base_url=base_url)
|
response = case.call(base_url=base_url)
|
||||||
else:
|
else:
|
||||||
response = case.call(base_url=base_url, headers=auth_headers)
|
response = case.call(base_url=base_url, headers=auth_headers)
|
||||||
|
|
||||||
|
CUSTOM_CHECKS = [c for c in checks.ALL_CHECKS if c.__name__ != "ignored_auth"]
|
||||||
|
|
||||||
# Validates status code, headers, and body against the OpenAPI schema:
|
# Validates status code, headers, and body against the OpenAPI schema:
|
||||||
case.validate_response(response)
|
case.validate_response(response, checks=CUSTOM_CHECKS)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user