We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e797dab commit da2e79bCopy full SHA for da2e79b
tests/test_namespace.py
@@ -1,5 +1,6 @@
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3
+import re
4
5
import flask_restx as restx
6
@@ -174,9 +175,4 @@ def post(self):
174
175
}
176
177
resp = client.post_json("/apples/validation/", data, status=400)
- assert resp == {
178
- "errors": {
179
- "": "Additional properties are not allowed ('agge' was unexpected)"
180
- },
181
- "message": "Input payload validation failed",
182
- }
+ assert re.match("Additional properties are not allowed \(u*'agge' was unexpected\)", resp["errors"][""])
0 commit comments