From c6744f6969767cc44f7fcba0be19054ff4fe26cb Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sat, 7 Feb 2026 03:29:19 +0100 Subject: [PATCH] fix test --- changedetectionio/tests/test_api_openapi.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/changedetectionio/tests/test_api_openapi.py b/changedetectionio/tests/test_api_openapi.py index 2adc2fbc0..e5b22c051 100644 --- a/changedetectionio/tests/test_api_openapi.py +++ b/changedetectionio/tests/test_api_openapi.py @@ -80,7 +80,10 @@ def test_openapi_validation_invalid_field_in_request_body(client, live_server, m # Should get 400 error due to invalid field (this will be caught by internal validation) # Note: This tests the flow where OpenAPI validation passes but internal validation catches it assert res.status_code == 400, f"Expected 400 but got {res.status_code}" - assert b"Additional properties are not allowed" in res.data, "Should contain validation error about additional properties" + # With patternProperties for processor_config_*, the error message format changed slightly + assert (b"Additional properties are not allowed" in res.data or + b"does not match any of the regexes" in res.data), \ + "Should contain validation error about additional/invalid properties" def test_openapi_validation_import_wrong_content_type(client, live_server, measure_memory_usage, datastore_path):