From a282b6cea4b92af0062f868fc9fd5cb0391dae74 Mon Sep 17 00:00:00 2001 From: Harry Date: Tue, 26 Aug 2025 15:47:22 +0800 Subject: [PATCH] refactor(tests): remove unused TestPerformance class from schema resolver tests --- api/tests/unit_tests/core/schemas/test_resolver.py | 4 ---- spec.http | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 spec.http diff --git a/api/tests/unit_tests/core/schemas/test_resolver.py b/api/tests/unit_tests/core/schemas/test_resolver.py index d1e809dbb8..643059e0e8 100644 --- a/api/tests/unit_tests/core/schemas/test_resolver.py +++ b/api/tests/unit_tests/core/schemas/test_resolver.py @@ -534,10 +534,6 @@ class TestSchemaResolverClass: assert resolved[1] == {"type": "string"} assert resolved[2]["type"] == "object" assert resolved[2]["title"] == "Q&A Structure Schema" - - -class TestPerformance: - """Performance-related tests""" def test_cache_performance(self): """Test that caching improves performance""" diff --git a/spec.http b/spec.http new file mode 100644 index 0000000000..dc3a37d08a --- /dev/null +++ b/spec.http @@ -0,0 +1,4 @@ +GET /console/api/spec/schema-definitions +Host: cloud-rag.dify.dev +authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiNzExMDZhYTQtZWJlMC00NGMzLWI4NWYtMWQ4Mjc5ZTExOGZmIiwiZXhwIjoxNzU2MTkyNDE4LCJpc3MiOiJDTE9VRCIsInN1YiI6IkNvbnNvbGUgQVBJIFBhc3Nwb3J0In0.Yx_TMdWVXCp5YEoQ8WR90lRhHHKggxAQvEl5RUnkZuc +### \ No newline at end of file