From 5f898873c63d9e88e77b9d07f890be598357d8ae Mon Sep 17 00:00:00 2001 From: Martin Bornhold Date: Fri, 17 Jun 2016 13:49:12 +0200 Subject: [PATCH] oss-licenses: Remove unused pytest fixture from tests. --- rhodecode/tests/functional/test_admin_settings.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/rhodecode/tests/functional/test_admin_settings.py b/rhodecode/tests/functional/test_admin_settings.py index 251a93b4..f5d92b45 100644 --- a/rhodecode/tests/functional/test_admin_settings.py +++ b/rhodecode/tests/functional/test_admin_settings.py @@ -461,10 +461,10 @@ class TestLabsSettings(object): @pytest.mark.usefixtures('app') class TestOpenSourceLicenses(object): - def _get_url(self, request): + def _get_url(self): return ADMIN_PREFIX + '/settings/open_source' - def test_records_are_displayed(self, autologin_user, request_stub): + def test_records_are_displayed(self, autologin_user): sample_licenses = { "python2.7-pytest-2.7.1": { "UNKNOWN": None @@ -477,7 +477,7 @@ class TestOpenSourceLicenses(object): 'rhodecode.admin.views.read_opensource_licenses', return_value=sample_licenses) with read_licenses_patch: - response = self.app.get(self._get_url(request_stub), status=200) + response = self.app.get(self._get_url(), status=200) assert_response = AssertResponse(response) assert_response.element_contains( @@ -487,15 +487,14 @@ class TestOpenSourceLicenses(object): for license in sample_licenses[name]: assert_response.element_contains('.panel-body', license) - def test_records_can_be_read(self, autologin_user, request_stub): - response = self.app.get(self._get_url(request_stub), status=200) + def test_records_can_be_read(self, autologin_user): + response = self.app.get(self._get_url(), status=200) assert_response = AssertResponse(response) assert_response.element_contains( '.panel-heading', 'Licenses of Third Party Packages') - def test_forbidden_when_normal_user(self, autologin_regular_user, - request_stub): - self.app.get(self._get_url(request_stub), status=403) + def test_forbidden_when_normal_user(self, autologin_regular_user): + self.app.get(self._get_url(), status=403) @pytest.mark.usefixtures("app")