fix: unittests

This commit is contained in:
lilong.129
2023-07-23 14:52:49 +08:00
parent 1c468aa793
commit 5462190f63
5 changed files with 19 additions and 13 deletions
+7 -6
View File
@@ -1,6 +1,7 @@
package scaffold
import (
"path/filepath"
"testing"
)
@@ -12,12 +13,12 @@ func TestGenDemoExamples(t *testing.T) {
}
// FIXME
// dir = "../../../examples/demo-with-py-plugin"
// venv := filepath.Join(dir, ".venv")
// err = CreateScaffold(dir, Py, venv, true)
// if err != nil {
// t.Fatal()
// }
dir = "../../../examples/demo-with-py-plugin"
venv := filepath.Join(dir, ".venv")
err = CreateScaffold(dir, Py, venv, true)
if err != nil {
t.Fatal()
}
dir = "../../../examples/demo-without-plugin"
err = CreateScaffold(dir, Ignore, "", true)