mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-11 02:39:46 +08:00
change: rename LoadFile to LoadFileObject
This commit is contained in:
@@ -53,11 +53,11 @@ func TestLoadTestCases(t *testing.T) {
|
||||
func TestLoadCase(t *testing.T) {
|
||||
tcJSON := &TestCase{}
|
||||
tcYAML := &TestCase{}
|
||||
err := LoadFile(demoTestCaseWithPluginJSONPath, tcJSON)
|
||||
err := LoadFileObject(demoTestCaseWithPluginJSONPath, tcJSON)
|
||||
if !assert.NoError(t, err) {
|
||||
t.Fatal()
|
||||
}
|
||||
err = LoadFile(demoTestCaseWithPluginYAMLPath, tcYAML)
|
||||
err = LoadFileObject(demoTestCaseWithPluginYAMLPath, tcYAML)
|
||||
if !assert.NoError(t, err) {
|
||||
t.Fatal()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user