Skip to content

Commit da2e79b

Browse files
committed
issue#186 - py27 fix
1 parent e797dab commit da2e79b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/test_namespace.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import unicode_literals
3+
import re
34

45
import flask_restx as restx
56

@@ -174,9 +175,4 @@ def post(self):
174175
}
175176

176177
resp = client.post_json("/apples/validation/", data, status=400)
177-
assert resp == {
178-
"errors": {
179-
"": "Additional properties are not allowed ('agge' was unexpected)"
180-
},
181-
"message": "Input payload validation failed",
182-
}
178+
assert re.match("Additional properties are not allowed \(u*'agge' was unexpected\)", resp["errors"][""])

0 commit comments

Comments
 (0)