mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-13 07:39:44 +08:00
fix: unittest
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user