Skip to content

Commit feb9222

Browse files
updated test suite
1 parent 0533536 commit feb9222

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/test_apifairy.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,10 @@ def bar():
525525

526526
rv = client.get('/apispec.json')
527527
assert rv.status_code == 200
528-
assert rv.json['components']['securitySchemes'] == {
529-
'basic_auth': {'scheme': 'basic', 'type': 'http'},
530-
}
528+
assert rv.json['components']['securitySchemes']['basic_auth'][
529+
'scheme'] == 'basic'
530+
assert rv.json['components']['securitySchemes']['basic_auth'][
531+
'type'] == 'http'
531532
assert rv.json['paths']['/foo']['get']['security'] == [
532533
{'basic_auth': []}]
533534
assert rv.json['paths']['/bar']['get']['security'] == [

0 commit comments

Comments
 (0)