mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-31 13:29:35 +08:00
refactor: fix typos
This commit is contained in:
@@ -118,7 +118,7 @@ class TestcaseParserUnittest(unittest.TestCase):
|
||||
self.assertEqual(testcase.parse_string_value("$var"), "$var")
|
||||
self.assertEqual(testcase.parse_string_value("${func}"), "${func}")
|
||||
|
||||
def test_parse_functon(self):
|
||||
def test_parse_function(self):
|
||||
self.assertEqual(
|
||||
testcase.parse_function("${func()}"),
|
||||
{'func_name': 'func', 'args': [], 'kwargs': {}}
|
||||
|
||||
@@ -31,12 +31,12 @@ class TestUtils(ApiServerUnittest):
|
||||
self.assertIn('url', testcase['request'])
|
||||
self.assertIn('method', testcase['request'])
|
||||
|
||||
def test_load_foler_files(self):
|
||||
def test_load_folder_files(self):
|
||||
folder = os.path.join(os.getcwd(), 'tests')
|
||||
file1 = os.path.join(os.getcwd(), 'tests', 'test_utils.py')
|
||||
file2 = os.path.join(os.getcwd(), 'tests', 'data', 'demo_binds.yml')
|
||||
|
||||
files = utils.load_foler_files(folder, ["*.py"])
|
||||
files = utils.load_folder_files(folder, ["*.py"])
|
||||
self.assertIn(file1, files)
|
||||
self.assertNotIn(file2, files)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user