summaryrefslogtreecommitdiffstats
path: root/commands/hugo_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-08-10 21:05:17 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-08-12 13:26:32 +0200
commit9e571827055dedb46b78c5db3d17d6913f14870b (patch)
treef5f0108afe0c9385ff6dc27664943d9f719f57ad /commands/hugo_test.go
parent6027ee11082d0b9d72de1d4d1980a702be294ad2 (diff)
tests: Convert from testify to quicktest
Diffstat (limited to 'commands/hugo_test.go')
-rw-r--r--commands/hugo_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/hugo_test.go b/commands/hugo_test.go
index db6961b66..6a666ff4a 100644
--- a/commands/hugo_test.go
+++ b/commands/hugo_test.go
@@ -17,12 +17,12 @@ import (
"os"
"testing"
- "github.com/stretchr/testify/require"
+ qt "github.com/frankban/quicktest"
)
// Issue #5662
func TestHugoWithContentDirOverride(t *testing.T) {
- assert := require.New(t)
+ c := qt.New(t)
hugoCmd := newCommandsBuilder().addAll().build()
cmd := hugoCmd.getCommand()
@@ -38,7 +38,7 @@ contentDir = "thisdoesnotexist"
`
dir, err := createSimpleTestSite(t, testSiteConfig{configTOML: cfgStr, contentDir: contentDir})
- assert.NoError(err)
+ c.Assert(err, qt.IsNil)
defer func() {
os.RemoveAll(dir)
@@ -47,6 +47,6 @@ contentDir = "thisdoesnotexist"
cmd.SetArgs([]string{"-s=" + dir, "-c=" + contentDir})
_, err = cmd.ExecuteC()
- assert.NoError(err)
+ c.Assert(err, qt.IsNil)
}