Skip to content

Commit a1b35bb

Browse files
authored
Use example.com domain in tests. (#8571)
* Use example.com domain for the samples. * Fixed typo.
1 parent ad282da commit a1b35bb

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/schemas/test_managementcommand.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ def test_command_detects_schema_generation_mode(self):
5252
@pytest.mark.skipif(yaml is None, reason='PyYAML is required.')
5353
def test_renders_default_schema_with_custom_title_url_and_description(self):
5454
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',
5858
stdout=self.out)
5959
# Check valid YAML was output.
6060
schema = yaml.safe_load(self.out.getvalue())
@@ -94,21 +94,21 @@ def test_writes_schema_to_file_on_parameter(self):
9494
@override_settings(REST_FRAMEWORK={'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.AutoSchema'})
9595
def test_coreapi_renders_default_schema_with_custom_title_url_and_description(self):
9696
expected_out = """info:
97-
description: Sample description
98-
title: SampleAPI
97+
description: Example description
98+
title: ExampleAPI
9999
version: ''
100100
openapi: 3.0.0
101101
paths:
102102
/:
103103
get:
104104
operationId: list
105105
servers:
106-
- url: http://api.sample.com/
106+
- url: http://api.example.com/
107107
"""
108108
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',
112112
stdout=self.out)
113113

114114
self.assertIn(formatting.dedent(expected_out), self.out.getvalue())

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy