Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
hexatester committed Aug 9, 2021
1 parent 68cc921 commit 080f138
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from dapodik.rest import Agama
from typing import List


def test_result():
data = """{ "results" : 8, "id" : "agama_id", "start": 0, "limit": 20, "rows" : [{"agama_id":1,"nama":"Islam","create_date":"2013-05-13 06:51:30","last_update":"2021-06-19 13:23:39","expired_date":null,"last_sync":"2021-06-19 13:23:39"},{"agama_id":2,"nama":"Kristen","create_date":"2013-05-13 00:00:00","last_update":"2021-06-19 13:23:39","expired_date":null,"last_sync":"2021-06-19 13:23:39"},{"agama_id":3,"nama":"Katholik","create_date":"2013-05-13 06:51:30","last_update":"2021-06-19 13:23:39","expired_date":null,"last_sync":"2021-06-19 13:23:39"},{"agama_id":4,"nama":"Hindu","create_date":"2013-05-13 06:51:30","last_update":"2021-06-19 13:23:39","expired_date":null,"last_sync":"2021-06-19 13:23:39"},{"agama_id":5,"nama":"Budha","create_date":"2013-05-13 06:51:30","last_update":"2021-06-19 13:23:39","expired_date":null,"last_sync":"2021-06-19 13:23:39"},{"agama_id":6,"nama":"Khonghucu","create_date":"2013-05-13 06:51:30","last_update":"2021-06-19 13:23:39","expired_date":null,"last_sync":"2021-06-19 13:23:39"},{"agama_id":7,"nama":"Kepercayaan kpd Tuhan YME","create_date":"2017-01-31 01:00:00","last_update":"2021-06-19 13:23:39","expired_date":null,"last_sync":"2021-06-19 13:23:39"},{"agama_id":99,"nama":"lainnya","create_date":"2013-05-13 06:51:30","last_update":"2021-06-19 13:23:39","expired_date":null,"last_sync":"2021-06-19 13:23:39"}] }"""
result = DapodikResult.from_str(data, List[Agama])
Expand Down

0 comments on commit 080f138

Please sign in to comment.