Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Testing started at 0:17 ...
- 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
- Launching py.test with arguments D:/Daria/Python/Python/pytest1/test/test_db_matches_ui.py in D:\Daria\Python\Python\pytest1\test
- ============================= 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\test, inifile:collected 1 item
- test_db_matches_ui.py E
- test setup failed
- request = <SubRequest 'db' for <Function 'test_group_list'>>
- @pytest.fixture(scope="session")
- def db(request):
- db_config = load_config(request.config.getoption("--target"))['db']
- dbfixture = DbFixture(host=db_config['host'], name=db_config['name'],
- > username=db_config['username'], password=db_config['password'])
- E TypeError: object() takes no parameters
- ..\conftest.py:38: TypeError
- E
- test_db_matches_ui.py:2 (test_group_list)
- def fin():
- > fixture.session.ensure_logout()
- E AttributeError: 'NoneType' object has no attribute 'session'
- ..\conftest.py:48: AttributeError
- [100%]
- =================================== ERRORS ====================================
- ______________________ ERROR at setup of test_group_list ______________________
- request = <SubRequest 'db' for <Function 'test_group_list'>>
- @pytest.fixture(scope="session")
- def db(request):
- db_config = load_config(request.config.getoption("--target"))['db']
- dbfixture = DbFixture(host=db_config['host'], name=db_config['name'],
- > username=db_config['username'], password=db_config['password'])
- E TypeError: object() takes no parameters
- ..\conftest.py:38: TypeError
- ____________________ ERROR at teardown of test_group_list _____________________
- def fin():
- > fixture.session.ensure_logout()
- E AttributeError: 'NoneType' object has no attribute 'session'
- ..\conftest.py:48: AttributeError
- =========================== 2 error in 0.13 seconds ===========================
- Process finished with exit code 0
Add Comment
Please, Sign In to add comment