()
| 162 | |
| 163 | #[test] |
| 164 | fn update_team_request_all_fields() { |
| 165 | let body = UpdateTeamRequest { |
| 166 | name: Some("Infra"), |
| 167 | description: Some("Infrastructure"), |
| 168 | visibility: Some(TeamVisibility::Visible), |
| 169 | }; |
| 170 | let json = serde_json::to_value(&body).unwrap(); |
| 171 | assert_eq!(json["name"], "Infra"); |
| 172 | assert_eq!(json["description"], "Infrastructure"); |
| 173 | assert_eq!(json["visibility"], "visible"); |
| 174 | } |
| 175 | |
| 176 | #[test] |
| 177 | fn path_construction() { |