Add test for installing via python script in offline mode

This commit is contained in:
David Dworken 2023-12-22 06:33:09 -08:00
parent ddc73230d8
commit abd7ee7fb2
No known key found for this signature in database

View File

@ -1050,7 +1050,15 @@ func TestInstallViaPythonScriptWithCustomHishtoryPath(t *testing.T) {
require.NoError(t, err)
require.NoError(t, os.RemoveAll(path.Join(homedir, altHishtoryPath)))
testInstallViaPythonScriptChild(t, bashTester{})
testInstallViaPythonScriptChild(t, zshTester{})
}
func TestInstallViaPythonScriptInOfflineMode(t *testing.T) {
defer testutils.BackupAndRestore(t)()
defer testutils.BackupAndRestoreEnv("HISHTORY_OFFLINE")()
os.Setenv("HISHTORY_OFFLINE", "1")
testInstallViaPythonScriptChild(t, zshTester{})
}
func testInstallViaPythonScript(t *testing.T, tester shellTester) {