fix: convert postman to pytest

This commit is contained in:
debugtalk
2022-06-27 21:28:09 +08:00
parent ea7607868f
commit 0a73f17e2b
2 changed files with 10 additions and 5 deletions

View File

@@ -450,8 +450,8 @@ func ReadFile(path string) ([]byte, error) {
return file, nil
}
func GetOutputNameWithoutExtension(path string) string {
func GetFileNameWithoutExtension(path string) string {
base := filepath.Base(path)
ext := filepath.Ext(base)
return base[0:len(base)-len(ext)] + "_test"
return base[0 : len(base)-len(ext)]
}