mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-15 12:47:56 +08:00
fix unit tests (#2562)
Co-authored-by: atarashansky <atarashansky@CZIMACOS3990.local>
This commit is contained in:
@@ -98,8 +98,7 @@ def custom_format_warning(msg, *args, **kwargs):
|
||||
|
||||
|
||||
def jsonify_strict(data):
|
||||
return json.dumps(data, cls=StrictJSONEncoder, allow_nan=False)
|
||||
|
||||
return StrictJSONEncoder().encode(data)
|
||||
|
||||
def import_plugins(plugin_module):
|
||||
"""
|
||||
|
||||
@@ -54,5 +54,5 @@ class TestJsonifyStrict(unittest.TestCase):
|
||||
# the actual test!
|
||||
self.assertEqual(
|
||||
jsonify_strict(values),
|
||||
'{"floating": [100.0, 101.0, 102.0], "integer": [0, 1, 2, 3, 4, 5, 6, 7]}',
|
||||
'{"integer": [0, 1, 2, 3, 4, 5, 6, 7], "floating": [100.0, 101.0, 102.0]}',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user