Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Project.to_dict() #160

Merged
merged 3 commits into from
Feb 21, 2025
Merged

Add Project.to_dict() #160

merged 3 commits into from
Feb 21, 2025

Conversation

shedokan
Copy link
Contributor

@shedokan shedokan commented Feb 8, 2025

Implemented Project.to_dict() along with tests

Comment on lines -47 to -59
assert project.id == sample_data["id"]
assert project.color == sample_data["color"]
assert project.comment_count == sample_data["comment_count"]
assert project.id == sample_data["id"]
assert project.is_favorite == sample_data["is_favorite"]
assert project.name == sample_data["name"]
assert project.is_shared == sample_data["is_shared"]
assert project.url == sample_data["url"]
assert project.is_inbox_project == sample_data["is_inbox_project"]
assert project.is_shared == sample_data["is_shared"]
assert project.is_team_inbox == sample_data["is_team_inbox"]
assert project.can_assign_tasks == sample_data["can_assign_tasks"]
assert project.name == sample_data["name"]
assert project.order == sample_data["order"]
assert project.parent_id == sample_data["parent_id"]
assert project.url == sample_data["url"]
assert project.view_style == sample_data["view_style"]
assert project.can_assign_tasks == sample_data["can_assign_tasks"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reorganized to match model - by alphabet

Copy link
Collaborator

@lefcha lefcha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@lefcha lefcha merged commit 988a2b7 into Doist:main Feb 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants