diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-06-28 15:16:43 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-06-28 15:16:43 +0100 |
| commit | a82546b70303000b4fc053a1ee21d3d8c7d6ad66 (patch) | |
| tree | f8c4238a5ae27759b3c1a6adb5c865b07e339a66 /test_utils | |
| parent | 6b06e874119ceca1a9dac1b94dcfe6e06aacd7b9 (diff) | |
feat(login): login with nip46 remote signer
and save details in git config
Diffstat (limited to 'test_utils')
| -rw-r--r-- | test_utils/src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test_utils/src/lib.rs b/test_utils/src/lib.rs index 64e3fff..ba9d30c 100644 --- a/test_utils/src/lib.rs +++ b/test_utils/src/lib.rs | |||
| @@ -708,13 +708,14 @@ impl CliTester { | |||
| 708 | formatter: ColorfulTheme::default(), | 708 | formatter: ColorfulTheme::default(), |
| 709 | } | 709 | } |
| 710 | } | 710 | } |
| 711 | pub fn new_with_timeout<I, S>(timeout_ms: u64, args: I) -> Self | 711 | pub fn new_with_timeout_from_dir<I, S>(timeout_ms: u64, dir: &PathBuf, args: I) -> Self |
| 712 | where | 712 | where |
| 713 | I: IntoIterator<Item = S>, | 713 | I: IntoIterator<Item = S>, |
| 714 | S: AsRef<OsStr>, | 714 | S: AsRef<OsStr>, |
| 715 | { | 715 | { |
| 716 | Self { | 716 | Self { |
| 717 | rexpect_session: rexpect_with(args, timeout_ms).expect("rexpect to spawn new process"), | 717 | rexpect_session: rexpect_with_from_dir(dir, args, timeout_ms) |
| 718 | .expect("rexpect to spawn new process"), | ||
| 718 | formatter: ColorfulTheme::default(), | 719 | formatter: ColorfulTheme::default(), |
| 719 | } | 720 | } |
| 720 | } | 721 | } |