Guest User

Untitled

a guest
Jul 5th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. Testing started at 0:17 ...
  2. D:\Daria\Python\Python\pytest1\env\Scripts\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.3\helpers\pycharm\_jb_pytest_runner.py" --path D:/Daria/Python/Python/pytest1/test/test_db_matches_ui.py
  3. Launching py.test with arguments D:/Daria/Python/Python/pytest1/test/test_db_matches_ui.py in D:\Daria\Python\Python\pytest1\test
  4.  
  5. ============================= test session starts =============================
  6. platform win32 -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
  7. rootdir: D:\Daria\Python\Python\pytest1\test, inifile:collected 1 item
  8.  
  9. test_db_matches_ui.py E
  10. test setup failed
  11. request = <SubRequest 'db' for <Function 'test_group_list'>>
  12.  
  13. @pytest.fixture(scope="session")
  14. def db(request):
  15. db_config = load_config(request.config.getoption("--target"))['db']
  16. dbfixture = DbFixture(host=db_config['host'], name=db_config['name'],
  17. > username=db_config['username'], password=db_config['password'])
  18. E TypeError: object() takes no parameters
  19.  
  20. ..\conftest.py:38: TypeError
  21. E
  22. test_db_matches_ui.py:2 (test_group_list)
  23. def fin():
  24. > fixture.session.ensure_logout()
  25. E AttributeError: 'NoneType' object has no attribute 'session'
  26.  
  27. ..\conftest.py:48: AttributeError
  28. [100%]
  29.  
  30. =================================== ERRORS ====================================
  31. ______________________ ERROR at setup of test_group_list ______________________
  32.  
  33. request = <SubRequest 'db' for <Function 'test_group_list'>>
  34.  
  35. @pytest.fixture(scope="session")
  36. def db(request):
  37. db_config = load_config(request.config.getoption("--target"))['db']
  38. dbfixture = DbFixture(host=db_config['host'], name=db_config['name'],
  39. > username=db_config['username'], password=db_config['password'])
  40. E TypeError: object() takes no parameters
  41.  
  42. ..\conftest.py:38: TypeError
  43. ____________________ ERROR at teardown of test_group_list _____________________
  44.  
  45. def fin():
  46. > fixture.session.ensure_logout()
  47. E AttributeError: 'NoneType' object has no attribute 'session'
  48.  
  49. ..\conftest.py:48: AttributeError
  50. =========================== 2 error in 0.13 seconds ===========================
  51. Process finished with exit code 0
Add Comment
Please, Sign In to add comment