fix: unittest

This commit is contained in:
xucong053
2022-06-15 15:17:10 +08:00
parent 94366b0ecc
commit 1be8e0e44b
2 changed files with 3 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ func ensurePython3Venv(venv string, packages ...string) (python3 string, err err
Msg("ensure python3 venv")
// check if python3 venv is available
if isPython3(python3) {
if !isPython3(python3) {
// python3 venv not available, create one
// check if system python3 is available
if err := ExecCommand("python3", "--version"); err != nil {

View File

@@ -9,7 +9,8 @@ from examples.postman_echo.request_methods.request_with_functions_test import (
class TestRunTestCase(unittest.TestCase):
def setUp(self):
self.runner = HttpRunner()
self.runner = TestCaseRequestWithFunctions()
self.runner.test_start()
def test_run_testcase_by_path(self):