Guest User

Untitled

a guest
May 27th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. Testing started at 22:18 ...
  2. 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
  3. Launching py.test with arguments C:/GitHub/python_testing/test/test_del_group.py in C:\GitHub\python_testing\test
  4.  
  5. ============================= test session starts =============================
  6. platform win32 -- Python 3.6.4, pytest-3.5.0, py-1.5.3, pluggy-0.6.0
  7. rootdir: C:\GitHub\python_testing\test, inifile:collected 1 item
  8.  
  9. test_del_group.py F
  10. test_del_group.py:3 (test_delete_some_group)
  11. [326:name modi...C 1Yv R , ...] != [326:name mod...C 1Yv R , ...]
  12.  
  13. Expected :[326:name mod...C 1Yv R , ...]
  14. Actual :[326:name modi...C 1Yv R , ...]
  15. <Click to see difference>
  16.  
  17. app = <fixture.application.Application object at 0x05F71A70>
  18. db = <fixture.db.DbFixture object at 0x05F71A30>
  19.  
  20. def test_delete_some_group(app, db):
  21. if len(db.get_group_list()) == 0:
  22. app.group.create(Group(name='test'))
  23. old_groups = db.get_group_list()
  24. group = random.choice(old_groups)
  25. app.group.delete_group_by_id(group.id)
  26. new_groups = db.get_group_list()
  27. assert len(old_groups) - 1 == app.group.count()
  28. old_groups.remove(group)
  29. > assert old_groups == new_groups
  30. E assert [326:name mod...C 1Yv R , ...] == [326:name modi...C 1Yv R , ...]
  31. E At index 26 diff: 354:names6:headerCjyZL9IqAY15w7:footerW eKoM != 353:namegHsgI :header9qcdzA438Q Le9Kn:footer1VZe
  32. E Right contains more items, first extra item: 360:names6:headerCjyZL9IqAY15w7:footerW eKoM
  33. E Use -v to get the full diff
  34.  
  35. test_del_group.py:13: AssertionError
  36. [100%]
  37.  
  38. ================================== FAILURES ===================================
  39. ___________________________ test_delete_some_group ____________________________
  40.  
  41. app = <fixture.application.Application object at 0x05F71A70>
  42. db = <fixture.db.DbFixture object at 0x05F71A30>
  43.  
  44. def test_delete_some_group(app, db):
  45. if len(db.get_group_list()) == 0:
  46. app.group.create(Group(name='test'))
  47. old_groups = db.get_group_list()
  48. group = random.choice(old_groups)
  49. app.group.delete_group_by_id(group.id)
  50. new_groups = db.get_group_list()
  51. assert len(old_groups) - 1 == app.group.count()
  52. old_groups.remove(group)
  53. > assert old_groups == new_groups
  54. E assert [326:name mod...C 1Yv R , ...] == [326:name modi...C 1Yv R , ...]
  55. E At index 26 diff: 354:names6:headerCjyZL9IqAY15w7:footerW eKoM != 353:namegHsgI :header9qcdzA438Q Le9Kn:footer1VZe
  56. E Right contains more items, first extra item: 360:names6:headerCjyZL9IqAY15w7:footerW eKoM
  57. E Use -v to get the full diff
  58.  
  59. test_del_group.py:13: AssertionError
  60. ========================== 1 failed in 12.65 seconds ==========================
  61. Process finished with exit code 0
Add Comment
Please, Sign In to add comment