Advertisement
lenkaseg

API filter PR by status

Jan 3rd, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. Before the fix: (pagure/api/fork.py, line 167: if status_text in ["0", "false", "closed"]:
  2.  
  3. Traceback (most recent call last):
  4. File "/home/vagrant/.virtualenvs/python3-pagure/lib/python3.6/site-packages/mock/mock.py", line 1305, in patched
  5. return func(*args, **keywargs)
  6. File "/home/vagrant/devel/tests/test_pagure_flask_api_user.py", line 868, in test_api_view_user_requests_filed
  7. self.assertEqual(len(data_nouser['requests']), 2)
  8. AssertionError: 4 != 2
  9.  
  10.  
  11. After the fix: (pagure/api/fork.py, line 167: if status_text in ["0", "false"]:
  12.  
  13. Test suite passed: py-test_pagure_flask_api_user
  14. Running 0 suites: 0 remaining, 0 failed
  15. All work done
  16.  
  17.  
  18. ALL PASSED! CONGRATULATIONS!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement