Guest User

Untitled

a guest
May 30th, 2018
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.49 KB | None | 0 0
  1. ====================== 2 failed, 2 error in 0.89 seconds ======================
  2.  
  3. (env) D:\Daria\Python\Python\pytest1>py.test test_add_group.py
  4. ============================= test session starts =============================
  5. platform win32 -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
  6. rootdir: D:\Daria\Python\Python\pytest1, inifile:
  7. collected 2 items
  8.  
  9. test_add_group.py FEFE [100%]
  10.  
  11. =================================== ERRORS ====================================
  12. _____________________ ERROR at teardown of test_add_group _____________________
  13.  
  14. self = <CallInfo when='teardown' exception: destroy() missing 1 required positio
  15. nal argument: 'self'>
  16. func = <function call_runtest_hook.<locals>.<lambda> at 0x034BE930>
  17. when = 'teardown'
  18.  
  19. def __init__(self, func, when):
  20. #: context of invocation: one of "setup", "call",
  21. #: "teardown", "memocollect"
  22. self.when = when
  23. self.start = time()
  24. try:
  25. > self.result = func()
  26.  
  27. env\lib\site-packages\_pytest\runner.py:193:
  28. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  29. env\lib\site-packages\_pytest\runner.py:179: in <lambda>
  30. return CallInfo(lambda: ihook(item=item, **kwds), when=when)
  31. env\lib\site-packages\pluggy\__init__.py:617: in __call__
  32. return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  33. env\lib\site-packages\pluggy\__init__.py:222: in _hookexec
  34. return self._inner_hookexec(hook, methods, kwargs)
  35. env\lib\site-packages\pluggy\__init__.py:216: in <lambda>
  36. firstresult=hook.spec_opts.get('firstresult'),
  37. env\lib\site-packages\_pytest\runner.py:124: in pytest_runtest_teardown
  38. item.session._setupstate.teardown_exact(item, nextitem)
  39. env\lib\site-packages\_pytest\runner.py:488: in teardown_exact
  40. self._teardown_towards(needed_collectors)
  41. env\lib\site-packages\_pytest\runner.py:494: in _teardown_towards
  42. self._pop_and_teardown()
  43. env\lib\site-packages\_pytest\runner.py:454: in _pop_and_teardown
  44. self._teardown_with_finalization(colitem)
  45. env\lib\site-packages\_pytest\runner.py:472: in _teardown_with_finalization
  46. self._callfinalizers(colitem)
  47. env\lib\site-packages\_pytest\runner.py:469: in _callfinalizers
  48. py.builtin._reraise(*exc)
  49. env\lib\site-packages\_pytest\runner.py:462: in _callfinalizers
  50. fin()
  51. env\lib\site-packages\_pytest\fixtures.py:761: in finish
  52. py.builtin._reraise(*e)
  53. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  54.  
  55. self = <FixtureDef name='app' scope='function' baseid='test_add_group.py' >
  56. request = <SubRequest 'app' for <Function 'test_add_group'>>
  57.  
  58. def finish(self, request):
  59. exceptions = []
  60. try:
  61. while self._finalizers:
  62. try:
  63. func = self._finalizers.pop()
  64. > func()
  65. E TypeError: destroy() missing 1 required positional argument:
  66. 'self'
  67.  
  68. env\lib\site-packages\_pytest\fixtures.py:755: TypeError
  69. __________________ ERROR at teardown of test_add_empty_group __________________
  70.  
  71. self = <CallInfo when='teardown' exception: destroy() missing 1 required positio
  72. nal argument: 'self'>
  73. func = <function call_runtest_hook.<locals>.<lambda> at 0x0356BA98>
  74. when = 'teardown'
  75.  
  76. def __init__(self, func, when):
  77. #: context of invocation: one of "setup", "call",
  78. #: "teardown", "memocollect"
  79. self.when = when
  80. self.start = time()
  81. try:
  82. > self.result = func()
  83.  
  84. env\lib\site-packages\_pytest\runner.py:193:
  85. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  86. env\lib\site-packages\_pytest\runner.py:179: in <lambda>
  87. return CallInfo(lambda: ihook(item=item, **kwds), when=when)
  88. env\lib\site-packages\pluggy\__init__.py:617: in __call__
  89. return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  90. env\lib\site-packages\pluggy\__init__.py:222: in _hookexec
  91. return self._inner_hookexec(hook, methods, kwargs)
  92. env\lib\site-packages\pluggy\__init__.py:216: in <lambda>
  93. firstresult=hook.spec_opts.get('firstresult'),
  94. env\lib\site-packages\_pytest\runner.py:124: in pytest_runtest_teardown
  95. item.session._setupstate.teardown_exact(item, nextitem)
  96. env\lib\site-packages\_pytest\runner.py:488: in teardown_exact
  97. self._teardown_towards(needed_collectors)
  98. env\lib\site-packages\_pytest\runner.py:494: in _teardown_towards
  99. self._pop_and_teardown()
  100. env\lib\site-packages\_pytest\runner.py:454: in _pop_and_teardown
  101. self._teardown_with_finalization(colitem)
  102. env\lib\site-packages\_pytest\runner.py:472: in _teardown_with_finalization
  103. self._callfinalizers(colitem)
  104. env\lib\site-packages\_pytest\runner.py:469: in _callfinalizers
  105. py.builtin._reraise(*exc)
  106. env\lib\site-packages\_pytest\runner.py:462: in _callfinalizers
  107. fin()
  108. env\lib\site-packages\_pytest\fixtures.py:761: in finish
  109. py.builtin._reraise(*e)
  110. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  111.  
  112. self = <FixtureDef name='app' scope='function' baseid='test_add_group.py' >
  113. request = <SubRequest 'app' for <Function 'test_add_empty_group'>>
  114.  
  115. def finish(self, request):
  116. exceptions = []
  117. try:
  118. while self._finalizers:
  119. try:
  120. func = self._finalizers.pop()
  121. > func()
  122. E TypeError: destroy() missing 1 required positional argument:
  123. 'self'
  124.  
  125. env\lib\site-packages\_pytest\fixtures.py:755: TypeError
  126. ================================== FAILURES ===================================
  127. _______________________________ test_add_group ________________________________
  128.  
  129. app = <class 'application.Application'>
  130.  
  131. def test_add_group(app):
  132. > app.login(app, username="admin", password="secret")
  133.  
  134. test_add_group.py:16:
  135. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  136.  
  137. self = <class 'application.Application'>, username = 'admin'
  138. password = 'secret'
  139.  
  140. def login(self, username, password):
  141. > wd = self.wd
  142. E AttributeError: type object 'Application' has no attribute 'wd'
  143.  
  144. application.py:16: AttributeError
  145. ____________________________ test_add_empty_group _____________________________
  146.  
  147. app = <class 'application.Application'>
  148.  
  149. def test_add_empty_group(app):
  150. > app.login(username="admin", password="secret")
  151. E TypeError: login() missing 1 required positional argument: 'self'
  152.  
  153. test_add_group.py:22: TypeError
  154. ====================== 2 failed, 2 error in 0.90 seconds ======================
  155.  
  156. (env) D:\Daria\Python\Python\pytest1>py.test test_add_group.py
  157. ============================= test session starts =============================
  158. platform win32 -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
  159. rootdir: D:\Daria\Python\Python\pytest1, inifile:
  160. collected 2 items
  161.  
  162. test_add_group.py FEFE [100%]
  163.  
  164. =================================== ERRORS ====================================
  165. _____________________ ERROR at teardown of test_add_group _____________________
  166.  
  167. self = <CallInfo when='teardown' exception: destroy() missing 1 required positio
  168. nal argument: 'self'>
  169. func = <function call_runtest_hook.<locals>.<lambda> at 0x0348D468>
  170. when = 'teardown'
  171.  
  172. def __init__(self, func, when):
  173. #: context of invocation: one of "setup", "call",
  174. #: "teardown", "memocollect"
  175. self.when = when
  176. self.start = time()
  177. try:
  178. > self.result = func()
  179.  
  180. env\lib\site-packages\_pytest\runner.py:193:
  181. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  182. env\lib\site-packages\_pytest\runner.py:179: in <lambda>
  183. return CallInfo(lambda: ihook(item=item, **kwds), when=when)
  184. env\lib\site-packages\pluggy\__init__.py:617: in __call__
  185. return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  186. env\lib\site-packages\pluggy\__init__.py:222: in _hookexec
  187. return self._inner_hookexec(hook, methods, kwargs)
  188. env\lib\site-packages\pluggy\__init__.py:216: in <lambda>
  189. firstresult=hook.spec_opts.get('firstresult'),
  190. env\lib\site-packages\_pytest\runner.py:124: in pytest_runtest_teardown
  191. item.session._setupstate.teardown_exact(item, nextitem)
  192. env\lib\site-packages\_pytest\runner.py:488: in teardown_exact
  193. self._teardown_towards(needed_collectors)
  194. env\lib\site-packages\_pytest\runner.py:494: in _teardown_towards
  195. self._pop_and_teardown()
  196. env\lib\site-packages\_pytest\runner.py:454: in _pop_and_teardown
  197. self._teardown_with_finalization(colitem)
  198. env\lib\site-packages\_pytest\runner.py:472: in _teardown_with_finalization
  199. self._callfinalizers(colitem)
  200. env\lib\site-packages\_pytest\runner.py:469: in _callfinalizers
  201. py.builtin._reraise(*exc)
  202. env\lib\site-packages\_pytest\runner.py:462: in _callfinalizers
  203. fin()
  204. env\lib\site-packages\_pytest\fixtures.py:761: in finish
  205. py.builtin._reraise(*e)
  206. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  207.  
  208. self = <FixtureDef name='app' scope='function' baseid='test_add_group.py' >
  209. request = <SubRequest 'app' for <Function 'test_add_group'>>
  210.  
  211. def finish(self, request):
  212. exceptions = []
  213. try:
  214. while self._finalizers:
  215. try:
  216. func = self._finalizers.pop()
  217. > func()
  218. E TypeError: destroy() missing 1 required positional argument:
  219. 'self'
  220.  
  221. env\lib\site-packages\_pytest\fixtures.py:755: TypeError
  222. __________________ ERROR at teardown of test_add_empty_group __________________
  223.  
  224. self = <CallInfo when='teardown' exception: destroy() missing 1 required positio
  225. nal argument: 'self'>
  226. func = <function call_runtest_hook.<locals>.<lambda> at 0x034F8930>
  227. when = 'teardown'
  228.  
  229. def __init__(self, func, when):
  230. #: context of invocation: one of "setup", "call",
  231. #: "teardown", "memocollect"
  232. self.when = when
  233. self.start = time()
  234. try:
  235. > self.result = func()
  236.  
  237. env\lib\site-packages\_pytest\runner.py:193:
  238. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  239. env\lib\site-packages\_pytest\runner.py:179: in <lambda>
  240. return CallInfo(lambda: ihook(item=item, **kwds), when=when)
  241. env\lib\site-packages\pluggy\__init__.py:617: in __call__
  242. return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  243. env\lib\site-packages\pluggy\__init__.py:222: in _hookexec
  244. return self._inner_hookexec(hook, methods, kwargs)
  245. env\lib\site-packages\pluggy\__init__.py:216: in <lambda>
  246. firstresult=hook.spec_opts.get('firstresult'),
  247. env\lib\site-packages\_pytest\runner.py:124: in pytest_runtest_teardown
  248. item.session._setupstate.teardown_exact(item, nextitem)
  249. env\lib\site-packages\_pytest\runner.py:488: in teardown_exact
  250. self._teardown_towards(needed_collectors)
  251. env\lib\site-packages\_pytest\runner.py:494: in _teardown_towards
  252. self._pop_and_teardown()
  253. env\lib\site-packages\_pytest\runner.py:454: in _pop_and_teardown
  254. self._teardown_with_finalization(colitem)
  255. env\lib\site-packages\_pytest\runner.py:472: in _teardown_with_finalization
  256. self._callfinalizers(colitem)
  257. env\lib\site-packages\_pytest\runner.py:469: in _callfinalizers
  258. py.builtin._reraise(*exc)
  259. env\lib\site-packages\_pytest\runner.py:462: in _callfinalizers
  260. fin()
  261. env\lib\site-packages\_pytest\fixtures.py:761: in finish
  262. py.builtin._reraise(*e)
  263. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  264.  
  265. self = <FixtureDef name='app' scope='function' baseid='test_add_group.py' >
  266. request = <SubRequest 'app' for <Function 'test_add_empty_group'>>
  267.  
  268. def finish(self, request):
  269. exceptions = []
  270. try:
  271. while self._finalizers:
  272. try:
  273. func = self._finalizers.pop()
  274. > func()
  275. E TypeError: destroy() missing 1 required positional argument:
  276. 'self'
  277.  
  278. env\lib\site-packages\_pytest\fixtures.py:755: TypeError
  279. ================================== FAILURES ===================================
  280. _______________________________ test_add_group ________________________________
  281.  
  282. app = <class 'application.Application'>
  283.  
  284. def test_add_group(app):
  285. > app.login(username="admin", password="secret")
  286. E TypeError: login() missing 1 required positional argument: 'self'
  287.  
  288. test_add_group.py:16: TypeError
  289. ____________________________ test_add_empty_group _____________________________
  290.  
  291. app = <class 'application.Application'>
  292.  
  293. def test_add_empty_group(app):
  294. > app.login(username="admin", password="secret")
  295. E TypeError: login() missing 1 required positional argument: 'self'
  296.  
  297. test_add_group.py:22: TypeError
  298. ====================== 2 failed, 2 error in 0.87 seconds ======================
  299.  
  300. (env) D:\Daria\Python\Python\pytest1>
Add Comment
Please, Sign In to add comment