File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 5
5
6
6
class TestBasicInfo (TestCase ):
7
7
def setUp (self ):
8
- self .document = coreapi .Document (title = 'Example API' )
8
+ self .document = coreapi .Document (title = 'Example API' , url = 'https://www.example.com/' )
9
9
self .swagger = generate_swagger_object (self .document )
10
10
11
11
def test_info (self ):
@@ -23,9 +23,14 @@ def test_swagger_version(self):
23
23
24
24
def test_host (self ):
25
25
self .assertIn ('host' , self .swagger )
26
- expected = ''
26
+ expected = 'www.example.com '
27
27
self .assertEquals (self .swagger ['host' ], expected )
28
28
29
+ def test_schemes (self ):
30
+ self .assertIn ('schemes' , self .swagger )
31
+ expected = ['https' ]
32
+ self .assertEquals (self .swagger ['schemes' ], expected )
33
+
29
34
30
35
class TestPaths (TestCase ):
31
36
def setUp (self ):
You can’t perform that action at this time.
0 commit comments