mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	doc tests: Add portico pages to tools/test-help-documentation.
Fixes #9117.
This commit is contained in:
		| @@ -53,3 +53,15 @@ class APIDocumentationSpider(UnusedImagesLinterSpider): | ||||
|     start_urls = ['http://localhost:9981/api'] | ||||
|     deny_domains = []  # type: List[str] | ||||
|     images_path = "static/images/api" | ||||
|  | ||||
| class PorticoDocumentationSpider(BaseDocumentationSpider): | ||||
|     name = 'portico_documentation_crawler' | ||||
|     start_urls = ['http://localhost:9981/hello', | ||||
|                   'http://localhost:9981/history', | ||||
|                   'http://localhost:9981/team', | ||||
|                   'http://localhost:9981/features', | ||||
|                   'http://localhost:9981/why-zulip', | ||||
|                   'http://localhost:9981/for/open-source', | ||||
|                   'http://localhost:9981/for/companies', | ||||
|                   'http://localhost:9981/for/working-groups-and-communities'] | ||||
|     deny_domains = []  # type: List[str] | ||||
|   | ||||
| @@ -31,8 +31,10 @@ with test_server_running(options.force, external_host, log_file=LOG_FILE, | ||||
|                                    cwd='tools/documentation_crawler') | ||||
|     ret_api_doc = subprocess.call(('scrapy', 'crawl_with_status', 'api_documentation_crawler'), | ||||
|                                   cwd='tools/documentation_crawler') | ||||
|     ret_portico_doc = subprocess.call(('scrapy', 'crawl_with_status', 'portico_documentation_crawler'), | ||||
|                                       cwd='tools/documentation_crawler') | ||||
|  | ||||
| if ret_help_doc != 0 or ret_api_doc != 0: | ||||
| if ret_help_doc != 0 or ret_api_doc != 0 or ret_portico_doc != 0: | ||||
|     print("\033[0;91m") | ||||
|     print("Failed") | ||||
|     print("\033[0m") | ||||
| @@ -42,4 +44,4 @@ else: | ||||
|     print("\033[0m") | ||||
|  | ||||
|  | ||||
| sys.exit(ret_help_doc or ret_api_doc) | ||||
| sys.exit(ret_help_doc or ret_api_doc or ret_portico_doc) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user