tests: fixed some pytest deprecated calls, and warnings.

This commit is contained in:
Daniel Dourvaris 2018-10-01 12:23:47 +02:00
parent 5e3a70e588
commit 1db967ddb0
9 changed files with 99 additions and 72 deletions

View file

@ -26,7 +26,7 @@ from rhodecode.tests import TEST_USER_ADMIN_LOGIN, TEST_USER_REGULAR_LOGIN
from rhodecode.api.tests.utils import (
build_data, api_call, assert_error, assert_ok, crash, jsonify)
from rhodecode.tests.fixture import Fixture
from rhodecode.tests.plugin import http_host_stub, http_host_only_stub
from rhodecode.tests.plugin import plain_http_host_only_stub
fixture = Fixture()
@ -80,7 +80,7 @@ class TestApiUpdateRepo(object):
({'repo_name': 'new_repo_name'},
{
'repo_name': 'new_repo_name',
'url': 'http://{}/new_repo_name'.format(http_host_only_stub())
'url': 'http://{}/new_repo_name'.format(plain_http_host_only_stub())
}),
({'repo_name': 'test_group_for_update/{}'.format(UPDATE_REPO_NAME),
@ -88,7 +88,7 @@ class TestApiUpdateRepo(object):
{
'repo_name': 'test_group_for_update/{}'.format(UPDATE_REPO_NAME),
'url': 'http://{}/test_group_for_update/{}'.format(
http_host_only_stub(), UPDATE_REPO_NAME)
plain_http_host_only_stub(), UPDATE_REPO_NAME)
}),
])
def test_api_update_repo(self, updates, expected, backend):