()
| 261 | use uuid::Uuid; |
| 262 | |
| 263 | pub fn mock_user() -> User { |
| 264 | User { |
| 265 | id: *Uuid::new_v4().as_bytes(), |
| 266 | identity: test_utils::random_principal(), |
| 267 | subscription_status: UserSubscriptionStatus::Approved, |
| 268 | stations: vec![], |
| 269 | deployed_stations: vec![], |
| 270 | user_rate_limiter: RateLimiter::new_user(), |
| 271 | last_active: 0, |
| 272 | last_update_timestamp: 0, |
| 273 | } |
| 274 | } |
| 275 | } |