mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-11 18:11:21 +08:00
fix: unittests
This commit is contained in:
@@ -107,8 +107,8 @@ from request_methods.request_with_functions_test import (
|
||||
)
|
||||
loader.project_meta = None
|
||||
self.assertEqual(
|
||||
ensure_file_abs_path_valid(os.path.join(os.getcwd(), "README.md")),
|
||||
os.path.join(os.getcwd(), "README.md"),
|
||||
ensure_file_abs_path_valid(os.path.join(os.getcwd(), "pyproject.toml")),
|
||||
os.path.join(os.getcwd(), "pyproject.toml"),
|
||||
)
|
||||
loader.project_meta = None
|
||||
self.assertEqual(
|
||||
|
||||
@@ -19,7 +19,7 @@ class TestScaffold(unittest.TestCase):
|
||||
|
||||
# run demo testcases
|
||||
try:
|
||||
if platform.system() is "Windows":
|
||||
if platform.system() == "Windows":
|
||||
subprocess.check_call(["hrun", project_name], shell=True)
|
||||
else:
|
||||
subprocess.check_call(["hrun", project_name])
|
||||
|
||||
Reference in New Issue
Block a user