Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso committed Mar 17, 2021
1 parent ac73937 commit 1387d48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/models/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ def test_model_creates_when_new(self):

def test_model_can_cast_attributes(self):
model = ModelTest.hydrate(
{"is_vip": 1, "payload": {"key": "value"}, "x": True, "f": "10.5"}
{"is_vip": 1, "payload": '{"key": "value"}', "x": True, "f": "10.5"}
)

self.assertEqual(type(model.payload), str)
self.assertEqual(type(model.payload), dict)
self.assertEqual(type(model.x), int)
self.assertEqual(type(model.f), float)
self.assertEqual(type(model.is_vip), bool)
Expand Down

0 comments on commit 1387d48

Please sign in to comment.