mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 03:47:54 +02:00
Add test for installing via python script in offline mode
This commit is contained in:
parent
ddc73230d8
commit
abd7ee7fb2
@ -1050,7 +1050,15 @@ func TestInstallViaPythonScriptWithCustomHishtoryPath(t *testing.T) {
|
|||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.NoError(t, os.RemoveAll(path.Join(homedir, altHishtoryPath)))
|
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) {
|
func testInstallViaPythonScript(t *testing.T, tester shellTester) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user