Skip to content

Commit

Permalink
Fix unexisting attribute access
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruwann committed Dec 10, 2023
1 parent 6dc9436 commit e48075e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_flask_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,16 @@ def get_value(data, path):
assert example == "a7b8869c-5f24-4ce0-a5d1-3e44c3663aa9"

res = app_client.get("/v1.0/datetime")
assert res.status_code == 200, f"Error is {res.data}"
assert res.status_code == 200, f"Error is {res.text}"
data = res.json()
assert data == {"value": "2000-01-02T03:04:05.000006Z"}

res = app_client.get("/v1.0/date")
assert res.status_code == 200, f"Error is {res.data}"
assert res.status_code == 200, f"Error is {res.text}"
data = res.json()
assert data == {"value": "2000-01-02"}

res = app_client.get("/v1.0/uuid")
assert res.status_code == 200, f"Error is {res.data}"
assert res.status_code == 200, f"Error is {res.text}"
data = res.json()
assert data == {"value": "e7ff66d0-3ec2-4c4e-bed0-6e4723c24c51"}

0 comments on commit e48075e

Please sign in to comment.