fixed tests

This commit is contained in:
Cayo Puigdefabregas 2022-05-11 13:14:11 +02:00
parent ce001b64aa
commit b8e980cabe
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,18 @@
[settings]
DH_TOKEN = {{token}}
DH_HOST = {{host}}
DH_DATABASE = {{inventory}}
DEVICEHUB_URL = https://${DB_HOST}/${DB_DATABASE}/
WB_BENCHMARK = {{ benchmark }}
WB_STRESS_TEST = {{ stress_test }}
WB_SMART_TEST = short
WB_ERASE = {{ erase }}
WB_ERASE_STEPS = {{ steps }}
WB_ERASE_LEADING_ZEROS = {{ leading_zeros }}
WB_DEBUG = True

View File

@ -19,7 +19,7 @@ def test_dependencies():
# Simplejson has a different signature than stdlib json
# should be fixed though
# noinspection PyUnresolvedReferences
import simplejson
import simplejson # noqa: F401
# noinspection PyArgumentList
@ -87,6 +87,7 @@ def test_api_docs(client: Client):
'/users/login/',
'/users/logout/',
'/versions/',
'/workbench/settings/',
}
assert docs['info'] == {'title': 'Devicehub', 'version': '0.2'}
assert docs['components']['securitySchemes']['bearerAuth'] == {