fix: unittests

This commit is contained in:
debugtalk
2022-03-21 15:16:09 +08:00
parent 757661c4af
commit 1bcbc19651
2 changed files with 3 additions and 3 deletions

View File

@@ -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(

View File

@@ -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])