mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
21 lines
534 B
Python
21 lines
534 B
Python
import pytest
|
|
from flask import url_for
|
|
|
|
import app
|
|
|
|
|
|
@pytest.mark.parametrize("page", range(1, 5))
|
|
def test_should_render_tour_pages(
|
|
app_,
|
|
api_user_active,
|
|
mocker,
|
|
mock_get_service,
|
|
page
|
|
):
|
|
with app_.test_request_context():
|
|
with app_.test_client() as client:
|
|
client.login(api_user_active, mocker)
|
|
response = client.get(url_for('main.tour', service_id=101, page=page))
|
|
assert response.status_code == 200
|
|
assert 'Next' in response.get_data(as_text=True)
|