From 7f865c1965b7c8dea9cd30a1c6b58efcc0437ce4 Mon Sep 17 00:00:00 2001 From: Gergely Imreh Date: Fri, 13 May 2022 14:52:22 +0800 Subject: [PATCH 1/2] correctly make Project attribute optional It was changed in #180 which broke direct `Project` creation. --- faculty/clients/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faculty/clients/project.py b/faculty/clients/project.py index 372cdb31..a70816ca 100644 --- a/faculty/clients/project.py +++ b/faculty/clients/project.py @@ -43,7 +43,7 @@ class Project: id = attrib() name = attrib() owner_id = attrib() - archived_at = attrib() + archived_at = attrib(default=None) class ProjectClient(BaseClient): From 3134bf45179a472a3b1810e9c9234b2a97f95e56 Mon Sep 17 00:00:00 2001 From: Gergely Imreh Date: Fri, 13 May 2022 15:05:12 +0800 Subject: [PATCH 2/2] update Project creation test to cover optional parameter as well. --- tests/clients/test_project.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/clients/test_project.py b/tests/clients/test_project.py index e8d667bf..799bc6d8 100644 --- a/tests/clients/test_project.py +++ b/tests/clients/test_project.py @@ -31,7 +31,6 @@ id=uuid.uuid4(), name="test-project", owner_id=uuid.uuid4(), - archived_at=None, ) PROJECT_BODY = { "projectId": str(PROJECT.id),