mirror of
https://github.com/gopasspw/gopass.git
synced 2026-06-07 15:37:42 +02:00
263b78119b
* [bugfix] Fix writes to global config from tests Fixes #2725 Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> * Shorten readonly config creation. Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> * Address review comments Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> --------- Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
17 lines
295 B
Go
17 lines
295 B
Go
package leaf
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/gopasspw/gopass/internal/config"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestInit(t *testing.T) {
|
|
ctx := config.NewContextInMemory()
|
|
|
|
s, err := createSubStore(t)
|
|
require.NoError(t, err)
|
|
require.Error(t, s.Init(ctx, "", "0xDEADBEEF"))
|
|
}
|