MCPcopy Index your code
hub / github.com/endbasic/endbasic / test_login_bad_password

Function test_login_bad_password

client/src/cloud.rs:609–620  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

607 #[test]
608 #[ignore = "Requires environment configuration and is expensive"]
609 fn test_login_bad_password() {
610 #[tokio::main]
611 async fn run(context: &mut TestContext) {
612 let username =
613 env::var("TEST_ACCOUNT_1_USERNAME").expect("Expected env config not found");
614 let password = "this is an invalid password for the test account";
615
616 let err = context.service.login(&username, password).await.unwrap_err();
617 assert_eq!(io::ErrorKind::PermissionDenied, err.kind());
618 }
619 run(&mut TestContext::new_from_env());
620 }
621
622 #[test]
623 #[ignore = "Requires environment configuration and is expensive"]

Callers

nothing calls this directly

Calls 1

runFunction · 0.70

Tested by

no test coverage detected