fix definition of others

This commit is contained in:
Cayo Puigdefabregas 2022-11-29 17:46:41 +01:00
parent c392270676
commit 040421172f
2 changed files with 28 additions and 1 deletions

View File

@ -699,4 +699,31 @@ class ManufacturerDef(Resource):
class OtherDef(DeviceDef): class OtherDef(DeviceDef):
VIEW = None VIEW = None
SCHEMA = schemas.Computer
SCHEMA = schemas.Other SCHEMA = schemas.Other
def __init__(
self,
app,
import_name=__name__,
static_folder=None,
static_url_path=None,
template_folder=None,
url_prefix=None,
subdomain=None,
url_defaults=None,
root_path=None,
cli_commands: Iterable[Tuple[Callable, str or None]] = tuple(),
):
super().__init__(
app,
import_name,
static_folder,
static_url_path,
template_folder,
url_prefix,
subdomain,
url_defaults,
root_path,
cli_commands,
)

View File

@ -117,4 +117,4 @@ def test_api_docs(client: Client):
'scheme': 'basic', 'scheme': 'basic',
'name': 'Authorization', 'name': 'Authorization',
} }
assert len(docs['definitions']) == 132 assert len(docs['definitions']) == 134