Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Testing started at 22:18 ...
- C:\GitHub\python_testing\venv\Scripts\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2017.3.4\helpers\pycharm\_jb_pytest_runner.py" --path C:/GitHub/python_testing/test/test_del_group.py
- Launching py.test with arguments C:/GitHub/python_testing/test/test_del_group.py in C:\GitHub\python_testing\test
- ============================= test session starts =============================
- platform win32 -- Python 3.6.4, pytest-3.5.0, py-1.5.3, pluggy-0.6.0
- rootdir: C:\GitHub\python_testing\test, inifile:collected 1 item
- test_del_group.py F
- test_del_group.py:3 (test_delete_some_group)
- [326:name modi...C 1Yv R , ...] != [326:name mod...C 1Yv R , ...]
- Expected :[326:name mod...C 1Yv R , ...]
- Actual :[326:name modi...C 1Yv R , ...]
- <Click to see difference>
- app = <fixture.application.Application object at 0x05F71A70>
- db = <fixture.db.DbFixture object at 0x05F71A30>
- def test_delete_some_group(app, db):
- if len(db.get_group_list()) == 0:
- app.group.create(Group(name='test'))
- old_groups = db.get_group_list()
- group = random.choice(old_groups)
- app.group.delete_group_by_id(group.id)
- new_groups = db.get_group_list()
- assert len(old_groups) - 1 == app.group.count()
- old_groups.remove(group)
- > assert old_groups == new_groups
- E assert [326:name mod...C 1Yv R , ...] == [326:name modi...C 1Yv R , ...]
- E At index 26 diff: 354:names6:headerCjyZL9IqAY15w7:footerW eKoM != 353:namegHsgI :header9qcdzA438Q Le9Kn:footer1VZe
- E Right contains more items, first extra item: 360:names6:headerCjyZL9IqAY15w7:footerW eKoM
- E Use -v to get the full diff
- test_del_group.py:13: AssertionError
- [100%]
- ================================== FAILURES ===================================
- ___________________________ test_delete_some_group ____________________________
- app = <fixture.application.Application object at 0x05F71A70>
- db = <fixture.db.DbFixture object at 0x05F71A30>
- def test_delete_some_group(app, db):
- if len(db.get_group_list()) == 0:
- app.group.create(Group(name='test'))
- old_groups = db.get_group_list()
- group = random.choice(old_groups)
- app.group.delete_group_by_id(group.id)
- new_groups = db.get_group_list()
- assert len(old_groups) - 1 == app.group.count()
- old_groups.remove(group)
- > assert old_groups == new_groups
- E assert [326:name mod...C 1Yv R , ...] == [326:name modi...C 1Yv R , ...]
- E At index 26 diff: 354:names6:headerCjyZL9IqAY15w7:footerW eKoM != 353:namegHsgI :header9qcdzA438Q Le9Kn:footer1VZe
- E Right contains more items, first extra item: 360:names6:headerCjyZL9IqAY15w7:footerW eKoM
- E Use -v to get the full diff
- test_del_group.py:13: AssertionError
- ========================== 1 failed in 12.65 seconds ==========================
- Process finished with exit code 0
Add Comment
Please, Sign In to add comment