(self)
| 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) |
nothing calls this directly
no test coverage detected