Skip to content

Commit cf932c7

Browse files
Cyber1000rgerganov
authored andcommitted
fixed test
1 parent 7b7943c commit cf932c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testing/http_test_controller.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import flask
99
from Cryptodome.Cipher import AES
1010
from Cryptodome.Util.Padding import pad, unpad
11+
from collections import OrderedDict
1112

1213

1314
class HttpTestController:
@@ -105,7 +106,7 @@ def get_filters(self):
105106

106107
def _callback_get_data(self, dataset):
107108
data = self._test_data["http"][dataset]["data"]
108-
json_data = json.loads(data)
109+
json_data = json.loads(data, object_pairs_hook=OrderedDict)
109110
_encrypted_data = self._padding_encrypt(
110111
json_data, bytes(self._device_key.encode("ascii"))
111112
)

0 commit comments

Comments
 (0)