mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	openapi: Fix test output for undocumented parameters.
The output had the error messages swapped.
This commit is contained in:
		@@ -369,13 +369,13 @@ undocumented in the urls." % (method, url_pattern))  # nocoverage
 | 
			
		||||
                )
 | 
			
		||||
 | 
			
		||||
                if len(openapi_parameter_names - accepted_arguments) > 0:
 | 
			
		||||
                    print("Undocumented parameters for",
 | 
			
		||||
                    print("Documented invalid parameters for",
 | 
			
		||||
                          url_pattern, method, function)
 | 
			
		||||
                    print(" +", openapi_parameter_names)
 | 
			
		||||
                    print(" -", accepted_arguments)
 | 
			
		||||
                    assert(url_pattern in self.buggy_documentation_endpoints)
 | 
			
		||||
                elif len(accepted_arguments - openapi_parameter_names) > 0:
 | 
			
		||||
                    print("Documented invalid parameters for",
 | 
			
		||||
                    print("Undocumented parameters for",
 | 
			
		||||
                          url_pattern, method, function)
 | 
			
		||||
                    print(" -", openapi_parameter_names)
 | 
			
		||||
                    print(" +", accepted_arguments)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user