From fde6355c0f898b1e488e5482e9004d85ce8fb10e Mon Sep 17 00:00:00 2001 From: Amir Date: Thu, 11 Apr 2024 10:56:28 +0200 Subject: [PATCH] Revert "feat: Support project.allow_assignment" This reverts commit 1f739958c36d5611025223e5ffa55e9e11d6a1c8. --- tests/data/test_defaults.py | 1 - tests/test_models.py | 1 - todoist_api_python/models.py | 2 -- 3 files changed, 4 deletions(-) diff --git a/tests/data/test_defaults.py b/tests/data/test_defaults.py index d266bb7..ade3b96 100644 --- a/tests/data/test_defaults.py +++ b/tests/data/test_defaults.py @@ -56,7 +56,6 @@ "is_favorite": False, "is_inbox_project": True, "is_team_inbox": True, - "allow_assignment": False, "url": "https://todoist.com/showProject?id=1234", "view_style": "list", } diff --git a/tests/test_models.py b/tests/test_models.py index 3cd660d..06cf35b 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -52,7 +52,6 @@ def test_project_from_dict(): assert project.order == sample_data["order"] assert project.parent_id == sample_data["parent_id"] assert project.view_style == sample_data["view_style"] - assert project.allow_assignment == sample_data["allow_assignment"] def test_section_from_dict(): diff --git a/todoist_api_python/models.py b/todoist_api_python/models.py index a4cc5ec..ab9d61e 100644 --- a/todoist_api_python/models.py +++ b/todoist_api_python/models.py @@ -17,7 +17,6 @@ class Project: is_inbox_project: bool is_shared: bool is_team_inbox: bool - allow_assignment: bool name: str order: int parent_id: str | None @@ -34,7 +33,6 @@ def from_dict(cls, obj): is_inbox_project=obj.get("is_inbox_project"), is_shared=obj["is_shared"], is_team_inbox=obj.get("is_team_inbox"), - allow_assignment=obj["allow_assignment"], name=obj["name"], order=obj.get("order"), parent_id=obj.get("parent_id"),