@@ -52,9 +52,9 @@ def test_command_detects_schema_generation_mode(self):
52
52
@pytest .mark .skipif (yaml is None , reason = 'PyYAML is required.' )
53
53
def test_renders_default_schema_with_custom_title_url_and_description (self ):
54
54
call_command ('generateschema' ,
55
- '--title=SampleAPI ' ,
56
- '--url=http://api.sample .com' ,
57
- '--description=Sample description' ,
55
+ '--title=ExampleAPI ' ,
56
+ '--url=http://api.example .com' ,
57
+ '--description=Example description' ,
58
58
stdout = self .out )
59
59
# Check valid YAML was output.
60
60
schema = yaml .safe_load (self .out .getvalue ())
@@ -94,21 +94,21 @@ def test_writes_schema_to_file_on_parameter(self):
94
94
@override_settings (REST_FRAMEWORK = {'DEFAULT_SCHEMA_CLASS' : 'rest_framework.schemas.AutoSchema' })
95
95
def test_coreapi_renders_default_schema_with_custom_title_url_and_description (self ):
96
96
expected_out = """info:
97
- description: Sample description
98
- title: SampleAPI
97
+ description: Example description
98
+ title: ExampleAPI
99
99
version: ''
100
100
openapi: 3.0.0
101
101
paths:
102
102
/:
103
103
get:
104
104
operationId: list
105
105
servers:
106
- - url: http://api.sample .com/
106
+ - url: http://api.example .com/
107
107
"""
108
108
call_command ('generateschema' ,
109
- '--title=SampleAPI ' ,
110
- '--url=http://api.sample .com' ,
111
- '--description=Sample description' ,
109
+ '--title=ExampleAPI ' ,
110
+ '--url=http://api.example .com' ,
111
+ '--description=Example description' ,
112
112
stdout = self .out )
113
113
114
114
self .assertIn (formatting .dedent (expected_out ), self .out .getvalue ())
0 commit comments