Skip to content

Commit ee3b227

Browse files
BoggerBytegoncalossilva
authored andcommitted
Use dataclasses_json for object mapping
Closes #163
1 parent 768b4f4 commit ee3b227

File tree

5 files changed

+107
-284
lines changed

5 files changed

+107
-284
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
...
10+
### Changed
11+
12+
- Use `dataclasses_json` for object mapping
13+
14+
### Fixes
15+
16+
- Missing optional `next_cursor` attribute in `CompletedItems` object
1117

1218
## [2.1.7] - 2024-08-13
1319

poetry.lock

Lines changed: 56 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ include = ["LICENSE"]
1818
[tool.poetry.dependencies]
1919
python = "^3.13"
2020
requests = "^2.32.3"
21+
dataclasses-json = "^0.6.7"
2122

2223
[tool.poetry.group.dev.dependencies]
2324
pytest = "^8.0.0"

tests/data/test_defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"comment_count": 0,
3939
"creator_id": "0",
4040
"created_at": "2019-01-02T21:00:30.00000Z",
41-
"url": "https://todoist.com/showTask?id=2995104339",
41+
"url": "https://todoist.com/showTask?id=1234",
4242
"due": DEFAULT_DUE_RESPONSE,
4343
"duration": DEFAULT_DURATION_RESPONSE,
4444
}

0 commit comments

Comments
 (0)