mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-12 16:01:27 +08:00
refactor: rename debugtalk_gen.py to .debugtalk_gen.py
This commit is contained in:
@@ -32,7 +32,7 @@ const (
|
||||
|
||||
const (
|
||||
genDebugTalkGo = "debugtalk_gen.go"
|
||||
genDebugTalkPy = "debugtalk_gen.py"
|
||||
genDebugTalkPy = ".debugtalk_gen.py"
|
||||
)
|
||||
|
||||
//go:embed templates/debugtalkPythonTemplate
|
||||
|
||||
@@ -15,13 +15,13 @@ func TestRun(t *testing.T) {
|
||||
t.Fatal()
|
||||
}
|
||||
|
||||
genDebugTalkPy := "../scaffold/templates/plugin/debugtalk_gen.py"
|
||||
err = Run("../scaffold/templates/plugin/debugtalk.py", genDebugTalkPy)
|
||||
genDebugTalkPyPath := "../scaffold/templates/plugin/" + genDebugTalkPy
|
||||
err = Run("../scaffold/templates/plugin/debugtalk.py", genDebugTalkPyPath)
|
||||
if !assert.Nil(t, err) {
|
||||
t.Fatal()
|
||||
}
|
||||
|
||||
contentBytes, err := builtin.ReadFile(genDebugTalkPy)
|
||||
contentBytes, err := builtin.ReadFile(genDebugTalkPyPath)
|
||||
if !assert.Nil(t, err) {
|
||||
t.Fatal()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user