rename logged_in_platform_admin_client to platform_admin_client

of course it's logged in, it's a platform admin

also, reduce use of the `client` fixture in test_platform_admin
(replace it with platform_admin_client)
This commit is contained in:
Leo Hemsted
2019-08-27 16:01:28 +01:00
parent 464a74b329
commit b69321bf7a
13 changed files with 262 additions and 334 deletions

View File

@@ -25,9 +25,9 @@ sample_inbound_sms = {'data': [{"id": "activated",
]}
def test_inbound_sms_admin(logged_in_platform_admin_client, mocker):
def test_inbound_sms_admin(platform_admin_client, mocker):
mocker.patch("app.inbound_number_client.get_all_inbound_sms_number_service", return_value=sample_inbound_sms)
response = logged_in_platform_admin_client.get(url_for("main.inbound_sms_admin"))
response = platform_admin_client.get(url_for("main.inbound_sms_admin"))
assert response.status_code == 200
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')