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

Function TestInstallViaPythonScriptInOfflineMode

client/integration_test.go:1080–1091  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1078}
1079
1080func TestInstallViaPythonScriptInOfflineMode(t *testing.T) {
1081 markTestForSharding(t, 1)
1082 defer testutils.BackupAndRestore(t)()
1083 tester := zshTester{}
1084
1085 // Check that installing works
1086 testInstallViaPythonScriptChild(t, tester, Offline)
1087
1088 // And check that it installed in offline mode
1089 out := tester.RunInteractiveShell(t, `hishtory status -v`)
1090 require.Contains(t, out, "\nSync Mode: Disabled\n")
1091}
1092
1093func testInstallViaPythonScript(t *testing.T, tester shellTester) {
1094 defer testutils.BackupAndRestore(t)()

Callers

nothing calls this directly

Calls 4

RunInteractiveShellMethod · 0.95
BackupAndRestoreFunction · 0.92
markTestForShardingFunction · 0.85

Tested by

no test coverage detected