refactor: check if is function

This commit is contained in:
debugtalk
2020-01-01 21:59:41 +08:00
parent 095f9679f0
commit f8602e0edf
3 changed files with 2 additions and 14 deletions

View File

@@ -5,11 +5,6 @@ from httprunner.loader import check
class TestLoaderCheck(unittest.TestCase):
def test_is_function(self):
func = lambda x: x + 1
self.assertTrue(check.is_function(func))
self.assertTrue(check.is_function(check.is_testcase))
def test_is_testcases(self):
data_structure = "path/to/file"
self.assertFalse(check.is_testcases(data_structure))