MCPcopy
hub / github.com/ddworken/hishtory / testInstallViaPythonScript

Function testInstallViaPythonScript

client/integration_test.go:1093–1100  ·  view source on GitHub ↗
(t *testing.T, tester shellTester)

Source from the content-addressed store, hash-verified

1091}
1092
1093func testInstallViaPythonScript(t *testing.T, tester shellTester) {
1094 defer testutils.BackupAndRestore(t)()
1095 testInstallViaPythonScriptChild(t, tester, Online)
1096
1097 // And check that it installed in online mode
1098 out := tester.RunInteractiveShell(t, `hishtory status -v`)
1099 require.Contains(t, out, "\nSync Mode: Enabled\n")
1100}
1101
1102func testInstallViaPythonScriptChild(t *testing.T, tester shellTester, onlineStatus OnlineStatus) {
1103 if !testutils.IsOnline() {

Callers 1

TestParamFunction · 0.85

Calls 3

BackupAndRestoreFunction · 0.92
RunInteractiveShellMethod · 0.65

Tested by

no test coverage detected