fix(tests): fixed vcs tests after changes to how headers are passed in VCS calls
This commit is contained in:
parent
9ed71a170e
commit
d7670b4e0c
1 changed files with 2 additions and 4 deletions
|
|
@ -99,8 +99,7 @@ def test_repo_maker_uses_session_for_classmethods(stub_session_factory):
|
|||
'server_and_port', 'endpoint', 'test_dummy_scm', stub_session_factory)
|
||||
repo_maker.example_call()
|
||||
stub_session_factory().post.assert_called_with(
|
||||
'http://server_and_port/endpoint', data=mock.ANY,
|
||||
headers={'X-RC-Method': 'example_call', 'X-RC-Repo-Name': None})
|
||||
'http://server_and_port/endpoint', data=mock.ANY)
|
||||
|
||||
|
||||
def test_repo_maker_uses_session_for_instance_methods(
|
||||
|
|
@ -110,8 +109,7 @@ def test_repo_maker_uses_session_for_instance_methods(
|
|||
repo = repo_maker('stub_path', 'stub_repo_id', config)
|
||||
repo.example_call()
|
||||
stub_session_factory().post.assert_called_with(
|
||||
'http://server_and_port/endpoint', data=mock.ANY,
|
||||
headers={'X-RC-Method': 'example_call', 'X-RC-Repo-Name': 'stub_path'})
|
||||
'http://server_and_port/endpoint', data=mock.ANY)
|
||||
|
||||
|
||||
@mock.patch('rhodecode.lib.vcs.client_http.ThreadlocalSessionFactory')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue