File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ def project_response_factory(
6161 "fixed_fee" : fake .random_int () if fake .boolean () else None ,
6262 "id" : fake .random_int (),
6363 "is_private" : fake .boolean (),
64- "is_shared" : fake .boolean (),
6564 "name" : fake .word (),
6665 "rate" : fake .random_int () if fake .boolean () else None ,
6766 "rate_last_updated" : datetime_repr_factory (timezone ) if fake .boolean () else None ,
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def test_get_workspace_by_id(i_authed_workspace: Workspace) -> None:
2525 assert result .model_fields_set == expected_result
2626
2727
28- def test_get_workspaces__without_query_params (i_authed_workspace : Workspace )-> None :
28+ def test_get_workspaces__without_query_params (i_authed_workspace : Workspace ) -> None :
2929 expected_result = set (WorkspaceResponse .model_fields .keys ())
3030
3131 result = i_authed_workspace .list ()
@@ -35,7 +35,12 @@ def test_get_workspaces__without_query_params(i_authed_workspace: Workspace)-> N
3535
3636def test_update (i_authed_workspace : Workspace ) -> None :
3737 workspace_id = int (os .environ ["WORKSPACE_ID" ])
38- excluded_fields = {"admins" , "only_admins_may_create_tags" }
38+ excluded_fields = {
39+ "admins" ,
40+ "only_admins_may_create_tags" ,
41+ "reports_collapse" ,
42+ "only_admins_see_team_dashboard" ,
43+ }
3944 full_request_body = workspace_request_factory (exclude = excluded_fields )
4045 random_param = fake .random_element (full_request_body .keys ())
4146 request_body = {random_param : full_request_body [random_param ]}
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ class ProjectResponse(BaseSchema):
2828 fixed_fee : Optional [int ]
2929 id : int
3030 is_private : bool
31- is_shared : bool
3231 name : str
3332 rate : Optional [int ]
3433 rate_last_updated : Optional [datetime ]
You can’t perform that action at this time.
0 commit comments