File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ class Meta:
124124 "github_org_id" ,
125125 "github_primary_repo_id" ,
126126 "hide" ,
127+ "leadership_type" ,
127128 "google_drive_id" ,
128129 "image_logo" ,
129130 "image_hero" ,
Original file line number Diff line number Diff line change @@ -264,6 +264,17 @@ def test_create_leadership_type(auth_client):
264264 assert res .data ["description" ] == payload ["description" ]
265265
266266
267+ def test_project_leadership_type_relationship (auth_client , project_1 , leadership_type ):
268+ res = auth_client .patch (
269+ reverse ("project-detail" , args = [project_1 .pk ]),
270+ {"leadership_type" : leadership_type .pk },
271+ )
272+ assert res .status_code == status .HTTP_200_OK
273+
274+ res = auth_client .get (PROJECTS_URL )
275+ assert res .data [0 ]["leadership_type" ] == leadership_type .pk
276+
277+
267278def test_create_location (auth_client ):
268279 """Test that we can create a location"""
269280
You can’t perform that action at this time.
0 commit comments