MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / with_org_override

Function with_org_override

atomic-cli/src/commands/org/update.rs:194–205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

192
193 #[test]
194 fn with_org_override() {
195 let cmd = OrgUpdate {
196 slug: Some("target-org".to_string()),
197 name: Some("Name".to_string()),
198 email: None,
199 org: Some("client-org".to_string()),
200 };
201 // The positional slug is the org to update
202 assert_eq!(cmd.slug.as_deref(), Some("target-org"));
203 // The --org flag is the client scope
204 assert_eq!(cmd.org.as_deref(), Some("client-org"));
205 }
206
207 #[test]
208 fn no_fields_is_invalid() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected