Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ====================== 2 failed, 2 error in 0.89 seconds ======================
- (env) D:\Daria\Python\Python\pytest1>py.test test_add_group.py
- ============================= test session starts =============================
- platform win32 -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
- rootdir: D:\Daria\Python\Python\pytest1, inifile:
- collected 2 items
- test_add_group.py FEFE [100%]
- =================================== ERRORS ====================================
- _____________________ ERROR at teardown of test_add_group _____________________
- self = <CallInfo when='teardown' exception: destroy() missing 1 required positio
- nal argument: 'self'>
- func = <function call_runtest_hook.<locals>.<lambda> at 0x034BE930>
- when = 'teardown'
- def __init__(self, func, when):
- #: context of invocation: one of "setup", "call",
- #: "teardown", "memocollect"
- self.when = when
- self.start = time()
- try:
- > self.result = func()
- env\lib\site-packages\_pytest\runner.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- env\lib\site-packages\_pytest\runner.py:179: in <lambda>
- return CallInfo(lambda: ihook(item=item, **kwds), when=when)
- env\lib\site-packages\pluggy\__init__.py:617: in __call__
- return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
- env\lib\site-packages\pluggy\__init__.py:222: in _hookexec
- return self._inner_hookexec(hook, methods, kwargs)
- env\lib\site-packages\pluggy\__init__.py:216: in <lambda>
- firstresult=hook.spec_opts.get('firstresult'),
- env\lib\site-packages\_pytest\runner.py:124: in pytest_runtest_teardown
- item.session._setupstate.teardown_exact(item, nextitem)
- env\lib\site-packages\_pytest\runner.py:488: in teardown_exact
- self._teardown_towards(needed_collectors)
- env\lib\site-packages\_pytest\runner.py:494: in _teardown_towards
- self._pop_and_teardown()
- env\lib\site-packages\_pytest\runner.py:454: in _pop_and_teardown
- self._teardown_with_finalization(colitem)
- env\lib\site-packages\_pytest\runner.py:472: in _teardown_with_finalization
- self._callfinalizers(colitem)
- env\lib\site-packages\_pytest\runner.py:469: in _callfinalizers
- py.builtin._reraise(*exc)
- env\lib\site-packages\_pytest\runner.py:462: in _callfinalizers
- fin()
- env\lib\site-packages\_pytest\fixtures.py:761: in finish
- py.builtin._reraise(*e)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <FixtureDef name='app' scope='function' baseid='test_add_group.py' >
- request = <SubRequest 'app' for <Function 'test_add_group'>>
- def finish(self, request):
- exceptions = []
- try:
- while self._finalizers:
- try:
- func = self._finalizers.pop()
- > func()
- E TypeError: destroy() missing 1 required positional argument:
- 'self'
- env\lib\site-packages\_pytest\fixtures.py:755: TypeError
- __________________ ERROR at teardown of test_add_empty_group __________________
- self = <CallInfo when='teardown' exception: destroy() missing 1 required positio
- nal argument: 'self'>
- func = <function call_runtest_hook.<locals>.<lambda> at 0x0356BA98>
- when = 'teardown'
- def __init__(self, func, when):
- #: context of invocation: one of "setup", "call",
- #: "teardown", "memocollect"
- self.when = when
- self.start = time()
- try:
- > self.result = func()
- env\lib\site-packages\_pytest\runner.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- env\lib\site-packages\_pytest\runner.py:179: in <lambda>
- return CallInfo(lambda: ihook(item=item, **kwds), when=when)
- env\lib\site-packages\pluggy\__init__.py:617: in __call__
- return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
- env\lib\site-packages\pluggy\__init__.py:222: in _hookexec
- return self._inner_hookexec(hook, methods, kwargs)
- env\lib\site-packages\pluggy\__init__.py:216: in <lambda>
- firstresult=hook.spec_opts.get('firstresult'),
- env\lib\site-packages\_pytest\runner.py:124: in pytest_runtest_teardown
- item.session._setupstate.teardown_exact(item, nextitem)
- env\lib\site-packages\_pytest\runner.py:488: in teardown_exact
- self._teardown_towards(needed_collectors)
- env\lib\site-packages\_pytest\runner.py:494: in _teardown_towards
- self._pop_and_teardown()
- env\lib\site-packages\_pytest\runner.py:454: in _pop_and_teardown
- self._teardown_with_finalization(colitem)
- env\lib\site-packages\_pytest\runner.py:472: in _teardown_with_finalization
- self._callfinalizers(colitem)
- env\lib\site-packages\_pytest\runner.py:469: in _callfinalizers
- py.builtin._reraise(*exc)
- env\lib\site-packages\_pytest\runner.py:462: in _callfinalizers
- fin()
- env\lib\site-packages\_pytest\fixtures.py:761: in finish
- py.builtin._reraise(*e)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <FixtureDef name='app' scope='function' baseid='test_add_group.py' >
- request = <SubRequest 'app' for <Function 'test_add_empty_group'>>
- def finish(self, request):
- exceptions = []
- try:
- while self._finalizers:
- try:
- func = self._finalizers.pop()
- > func()
- E TypeError: destroy() missing 1 required positional argument:
- 'self'
- env\lib\site-packages\_pytest\fixtures.py:755: TypeError
- ================================== FAILURES ===================================
- _______________________________ test_add_group ________________________________
- app = <class 'application.Application'>
- def test_add_group(app):
- > app.login(app, username="admin", password="secret")
- test_add_group.py:16:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <class 'application.Application'>, username = 'admin'
- password = 'secret'
- def login(self, username, password):
- > wd = self.wd
- E AttributeError: type object 'Application' has no attribute 'wd'
- application.py:16: AttributeError
- ____________________________ test_add_empty_group _____________________________
- app = <class 'application.Application'>
- def test_add_empty_group(app):
- > app.login(username="admin", password="secret")
- E TypeError: login() missing 1 required positional argument: 'self'
- test_add_group.py:22: TypeError
- ====================== 2 failed, 2 error in 0.90 seconds ======================
- (env) D:\Daria\Python\Python\pytest1>py.test test_add_group.py
- ============================= test session starts =============================
- platform win32 -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
- rootdir: D:\Daria\Python\Python\pytest1, inifile:
- collected 2 items
- test_add_group.py FEFE [100%]
- =================================== ERRORS ====================================
- _____________________ ERROR at teardown of test_add_group _____________________
- self = <CallInfo when='teardown' exception: destroy() missing 1 required positio
- nal argument: 'self'>
- func = <function call_runtest_hook.<locals>.<lambda> at 0x0348D468>
- when = 'teardown'
- def __init__(self, func, when):
- #: context of invocation: one of "setup", "call",
- #: "teardown", "memocollect"
- self.when = when
- self.start = time()
- try:
- > self.result = func()
- env\lib\site-packages\_pytest\runner.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- env\lib\site-packages\_pytest\runner.py:179: in <lambda>
- return CallInfo(lambda: ihook(item=item, **kwds), when=when)
- env\lib\site-packages\pluggy\__init__.py:617: in __call__
- return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
- env\lib\site-packages\pluggy\__init__.py:222: in _hookexec
- return self._inner_hookexec(hook, methods, kwargs)
- env\lib\site-packages\pluggy\__init__.py:216: in <lambda>
- firstresult=hook.spec_opts.get('firstresult'),
- env\lib\site-packages\_pytest\runner.py:124: in pytest_runtest_teardown
- item.session._setupstate.teardown_exact(item, nextitem)
- env\lib\site-packages\_pytest\runner.py:488: in teardown_exact
- self._teardown_towards(needed_collectors)
- env\lib\site-packages\_pytest\runner.py:494: in _teardown_towards
- self._pop_and_teardown()
- env\lib\site-packages\_pytest\runner.py:454: in _pop_and_teardown
- self._teardown_with_finalization(colitem)
- env\lib\site-packages\_pytest\runner.py:472: in _teardown_with_finalization
- self._callfinalizers(colitem)
- env\lib\site-packages\_pytest\runner.py:469: in _callfinalizers
- py.builtin._reraise(*exc)
- env\lib\site-packages\_pytest\runner.py:462: in _callfinalizers
- fin()
- env\lib\site-packages\_pytest\fixtures.py:761: in finish
- py.builtin._reraise(*e)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <FixtureDef name='app' scope='function' baseid='test_add_group.py' >
- request = <SubRequest 'app' for <Function 'test_add_group'>>
- def finish(self, request):
- exceptions = []
- try:
- while self._finalizers:
- try:
- func = self._finalizers.pop()
- > func()
- E TypeError: destroy() missing 1 required positional argument:
- 'self'
- env\lib\site-packages\_pytest\fixtures.py:755: TypeError
- __________________ ERROR at teardown of test_add_empty_group __________________
- self = <CallInfo when='teardown' exception: destroy() missing 1 required positio
- nal argument: 'self'>
- func = <function call_runtest_hook.<locals>.<lambda> at 0x034F8930>
- when = 'teardown'
- def __init__(self, func, when):
- #: context of invocation: one of "setup", "call",
- #: "teardown", "memocollect"
- self.when = when
- self.start = time()
- try:
- > self.result = func()
- env\lib\site-packages\_pytest\runner.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- env\lib\site-packages\_pytest\runner.py:179: in <lambda>
- return CallInfo(lambda: ihook(item=item, **kwds), when=when)
- env\lib\site-packages\pluggy\__init__.py:617: in __call__
- return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
- env\lib\site-packages\pluggy\__init__.py:222: in _hookexec
- return self._inner_hookexec(hook, methods, kwargs)
- env\lib\site-packages\pluggy\__init__.py:216: in <lambda>
- firstresult=hook.spec_opts.get('firstresult'),
- env\lib\site-packages\_pytest\runner.py:124: in pytest_runtest_teardown
- item.session._setupstate.teardown_exact(item, nextitem)
- env\lib\site-packages\_pytest\runner.py:488: in teardown_exact
- self._teardown_towards(needed_collectors)
- env\lib\site-packages\_pytest\runner.py:494: in _teardown_towards
- self._pop_and_teardown()
- env\lib\site-packages\_pytest\runner.py:454: in _pop_and_teardown
- self._teardown_with_finalization(colitem)
- env\lib\site-packages\_pytest\runner.py:472: in _teardown_with_finalization
- self._callfinalizers(colitem)
- env\lib\site-packages\_pytest\runner.py:469: in _callfinalizers
- py.builtin._reraise(*exc)
- env\lib\site-packages\_pytest\runner.py:462: in _callfinalizers
- fin()
- env\lib\site-packages\_pytest\fixtures.py:761: in finish
- py.builtin._reraise(*e)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <FixtureDef name='app' scope='function' baseid='test_add_group.py' >
- request = <SubRequest 'app' for <Function 'test_add_empty_group'>>
- def finish(self, request):
- exceptions = []
- try:
- while self._finalizers:
- try:
- func = self._finalizers.pop()
- > func()
- E TypeError: destroy() missing 1 required positional argument:
- 'self'
- env\lib\site-packages\_pytest\fixtures.py:755: TypeError
- ================================== FAILURES ===================================
- _______________________________ test_add_group ________________________________
- app = <class 'application.Application'>
- def test_add_group(app):
- > app.login(username="admin", password="secret")
- E TypeError: login() missing 1 required positional argument: 'self'
- test_add_group.py:16: TypeError
- ____________________________ test_add_empty_group _____________________________
- app = <class 'application.Application'>
- def test_add_empty_group(app):
- > app.login(username="admin", password="secret")
- E TypeError: login() missing 1 required positional argument: 'self'
- test_add_group.py:22: TypeError
- ====================== 2 failed, 2 error in 0.87 seconds ======================
- (env) D:\Daria\Python\Python\pytest1>
Add Comment
Please, Sign In to add comment