MCPcopy Create free account
hub / github.com/aws/aws-cli / test_generate_docs

Method test_generate_docs

tests/unit/botocore/docs/test_docs.py:40–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38 self.available_service_patch.stop()
39
40 def test_generate_docs(self):
41 session = get_session()
42 # Have the rst files get written to the temporary directory
43 generate_docs(self.docs_root_dir, session)
44
45 reference_service_path = os.path.join(
46 self.root_services_path, 'myservice.rst'
47 )
48 self.assertTrue(os.path.exists(reference_service_path))
49
50 # Make sure the rst file has some the expected contents.
51 with open(reference_service_path) as f:
52 contents = f.read()
53 self.assertIn('AWS MyService', contents)
54 self.assertIn('Client', contents)
55 self.assertIn('Paginators', contents)
56 self.assertIn('Waiters', contents)

Callers

nothing calls this directly

Calls 4

get_sessionFunction · 0.90
generate_docsFunction · 0.90
existsMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected