fixed tests
This commit is contained in:
parent
ce001b64aa
commit
b8e980cabe
|
@ -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
|
|
@ -19,7 +19,7 @@ def test_dependencies():
|
||||||
# Simplejson has a different signature than stdlib json
|
# Simplejson has a different signature than stdlib json
|
||||||
# should be fixed though
|
# should be fixed though
|
||||||
# noinspection PyUnresolvedReferences
|
# noinspection PyUnresolvedReferences
|
||||||
import simplejson
|
import simplejson # noqa: F401
|
||||||
|
|
||||||
|
|
||||||
# noinspection PyArgumentList
|
# noinspection PyArgumentList
|
||||||
|
@ -87,6 +87,7 @@ def test_api_docs(client: Client):
|
||||||
'/users/login/',
|
'/users/login/',
|
||||||
'/users/logout/',
|
'/users/logout/',
|
||||||
'/versions/',
|
'/versions/',
|
||||||
|
'/workbench/settings/',
|
||||||
}
|
}
|
||||||
assert docs['info'] == {'title': 'Devicehub', 'version': '0.2'}
|
assert docs['info'] == {'title': 'Devicehub', 'version': '0.2'}
|
||||||
assert docs['components']['securitySchemes']['bearerAuth'] == {
|
assert docs['components']['securitySchemes']['bearerAuth'] == {
|
||||||
|
|
Reference in New Issue