Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

test_openapi: Provide missing defs_mapping argument.

Anders Kaseorgbb699f7ee33e
diff --git a/zerver/tests/test_openapi.py b/zerver/tests/test_openapi.py
index 16e6931dd4d..ce89f4bf52b 100644
--- a/zerver/tests/test_openapi.py
+++ b/zerver/tests/test_openapi.py
@@ -465,7 +465,7 @@ do not match the types declared in the implementation of {function.__name__}.\n"
# https://docs.pydantic.dev/latest/api/json_schema/#pydantic.json_schema.GenerateJsonSchema.json_schema
actual_param_schema = actual_param_schema["contentSchema"]
elif "contentMediaType" in actual_param_schema:
- function_schema_type = schema_type(actual_param_schema)
+ function_schema_type = schema_type(actual_param_schema, defs_mapping)
# We do not specify that the content type of int or bool
# parameters should be JSON encoded, while our code does expect
# that. In this case, we exempt this parameter from the content