lenkaseg

acls tests

Feb 14th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.92 KB | None | 0 0
  1. Test_api_pull_request_open_user_token exposes, that is not possible to use user token to open a pull request on master:
  2.  
  3. FAIL: test_api_pull_request_open_user_token (tests.test_pagure_flask_api_fork.PagureFlaskApiForktests): Test the api_pull_request_create method of the flask api with the
  4.         user token - passes
  5. ----------------------------------------------------------------------
  6. Traceback (most recent call last):
  7.   File "/home/vagrant/.virtualenvs/python3-pagure/lib/python3.6/site-packages/mock/mock.py", line 1305, in patched
  8.     return func(*args, **keywargs)
  9.   File "/home/vagrant/devel/tests/test_pagure_flask_api_fork.py", line 2754, in test_api_pull_request_open_user_token
  10.     self.assertEqual(output.status_code, 200)
  11. AssertionError: 401 != 200
  12.  
  13. ====================================================================
  14. After the change a pull request can be opened with user token:
  15.  
  16. ALL PASSED! CONGRATULATIONS!
Add Comment
Please, Sign In to add comment