解决:TypeError: object() takes no parameters

运行测试用例时发现以下报错

Ran 1 test in 22.505s

FAILED (errors=1)

Error
Traceback (most recent call last):
  File "D:\Program\python34\lib\unittest\case.py", line 58, in testPartExecutor
    yield
  File "D:\Program\python34\lib\unittest\case.py", line 580, in run
    testMethod()
  File "D:\python_workshop\appium_framework\TestCases\test_login.py", line 37, in test_login_success
    LoginPage(self.driver).input_phoneNumber("1868XXXX553")
TypeError: object() takes no parameters

真是醉了:def __init__函数写错了,

改过来就好了

猜你喜欢

转载自www.cnblogs.com/cnhkzyy/p/9393363.html
今日推荐