Skip to content

Commit 85a6bd2

Browse files
author
Daniel Townsend
committed
making json test more robust
1 parent 5e90b6e commit 85a6bd2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/table/test_output.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import json
2+
13
from ..base import DBTestCase
24
from ..example_project.tables import Pokemon
35

@@ -27,5 +29,5 @@ def test_output_as_json(self):
2729
).run_sync()
2830

2931
self.assertTrue(
30-
response == '[{"name":"pikachu"}]'
32+
json.loads(response) == [{'name': 'pikachu'}]
3133
)

0 commit comments

Comments
 (0)