@@ -31,10 +31,18 @@ def test_auto_generated_route(token, client, schemas_simple):
3131 }
3232 )
3333
34- assert expected_json == json .dumps (REST_response1 .get_json (), sort_keys = True )
35- assert expected_json == json .dumps (REST_response2 .get_json (), sort_keys = True )
36- assert expected_json == json .dumps (REST_response3 .get_json (), sort_keys = True )
37- assert expected_json == json .dumps (REST_response4 .get_json (), sort_keys = True )
34+ assert expected_json == json .dumps (
35+ REST_response1 .get_json (force = True ), sort_keys = True
36+ )
37+ assert expected_json == json .dumps (
38+ REST_response2 .get_json (force = True ), sort_keys = True
39+ )
40+ assert expected_json == json .dumps (
41+ REST_response3 .get_json (force = True ), sort_keys = True
42+ )
43+ assert expected_json == json .dumps (
44+ REST_response4 .get_json (force = True ), sort_keys = True
45+ )
3846
3947
4048def test_get_full_plot (token , client , schemas_simple ):
@@ -55,7 +63,9 @@ def test_get_full_plot(token, client, schemas_simple):
5563 ),
5664 sort_keys = True ,
5765 )
58- assert expected_json == json .dumps (REST_response1 .get_json (), sort_keys = True )
66+ assert expected_json == json .dumps (
67+ REST_response1 .get_json (force = True ), sort_keys = True
68+ )
5969
6070
6171def test_get_attributes (token , client , schemas_simple ):
@@ -116,7 +126,7 @@ def test_get_attributes(token, client, schemas_simple):
116126 },
117127 }
118128
119- assert expected_json == REST_response .get_json ()
129+ assert expected_json == REST_response .get_json (force = True )
120130
121131
122132def test_dynamic_restriction (token , client , schemas_simple ):
@@ -129,4 +139,6 @@ def test_dynamic_restriction(token, client, schemas_simple):
129139 "totalCount" : 2 ,
130140 }
131141 )
132- assert expected_json == json .dumps (REST_response .get_json (), sort_keys = True )
142+ assert expected_json == json .dumps (
143+ REST_response .get_json (force = True ), sort_keys = True
144+ )
0 commit comments