fix: compatibility for Python 2.7

This commit is contained in:
debugtalk
2020-01-01 09:51:43 +08:00
parent 8f826e3c02
commit dc2487d418

View File

@@ -281,5 +281,5 @@ class TestSuiteLoader(unittest.TestCase):
buildup.load_project_data(os.path.join(os.getcwd(), "tests"))
self.assertIn("gen_md5", self.project_mapping["functions"])
self.assertEqual(self.project_mapping["env"]["PROJECT_KEY"], "ABCDEFGH")
self.assertEqual(self.project_mapping["PWD"], os.path.dirname(os.path.dirname(__file__)))
self.assertEqual(self.project_mapping["test_path"], os.path.dirname(os.path.dirname(__file__)))
self.assertEqual(self.project_mapping["PWD"], os.path.abspath(os.path.dirname(os.path.dirname(__file__))))
self.assertEqual(self.project_mapping["test_path"], os.path.abspath(os.path.dirname(os.path.dirname(__file__))))