Skip to content

Commit

Permalink
add test for custom template
Browse files Browse the repository at this point in the history
runs on all 'remote' tests, which isn't 100% correct,
but should work for now
  • Loading branch information
minrk committed Apr 26, 2022
1 parent fa071b4 commit eed9f98
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions binderhub/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,17 @@ async def test_main_page(app):
assert r.status_code == 200, f"{r.status_code} {url}"


@pytest.mark.remote
async def test_custom_template(app):
"""Check that our custom template is applied
Assumes testing/k8s-binder-k8s-hub config is applied
"""
r = await async_requests.get(app.url)
assert r.status_code == 200
assert "test-template" in r.text


@pytest.mark.remote
async def test_about_handler(app):
# Check that the about page loads
Expand Down

0 comments on commit eed9f98

Please sign in to comment.