There was an error while loading. Please reload this page.
1 parent 0533536 commit feb9222Copy full SHA for feb9222
1 file changed
tests/test_apifairy.py
@@ -525,9 +525,10 @@ def bar():
525
526
rv = client.get('/apispec.json')
527
assert rv.status_code == 200
528
- assert rv.json['components']['securitySchemes'] == {
529
- 'basic_auth': {'scheme': 'basic', 'type': 'http'},
530
- }
+ assert rv.json['components']['securitySchemes']['basic_auth'][
+ 'scheme'] == 'basic'
531
+ 'type'] == 'http'
532
assert rv.json['paths']['/foo']['get']['security'] == [
533
{'basic_auth': []}]
534
assert rv.json['paths']['/bar']['get']['security'] == [
0 commit comments