Skip to content

Commit

Permalink
Test with a build optimized repo
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Nov 17, 2020
1 parent 22918b2 commit 413247b
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions binderhub/tests/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,29 @@
from .utils import async_requests


# We have optimized this slow test, for more information, see the README of
# https://github.com/binderhub-ci-repos/minimal-dockerfile.
@pytest.mark.asyncio(timeout=900)
@pytest.mark.parametrize("slug", [
"gh/binderhub-ci-repos/requirements/d687a7f9e6946ab01ef2baa7bd6d5b73c6e904fd",
"git/{}/d687a7f9e6946ab01ef2baa7bd6d5b73c6e904fd".format(
quote("https://github.com/binderhub-ci-repos/requirements", safe='')
# git/ Git repo provider
"git/{}/HEAD".format(
quote("https://github.com/consideratio/cached-minimal-dockerfile", safe='')
),
"git/{}/master".format(
quote("https://github.com/binderhub-ci-repos/requirements", safe='')
"git/{}/596b52f10efb0c9befc0c4ae850cc5175297d71c".format(
quote("https://github.com/consideratio/cached-minimal-dockerfile", safe='')
),
"gl/minrk%2Fbinderhub-ci/0d4a217d40660efaa58761d8c6084e7cf5453cca",
# gh/ GitHub repo provider
"gh/consideratio/cached-minimal-dockerfile/HEAD",
"gh/consideratio/cached-minimal-dockerfile/596b52f10efb0c9befc0c4ae850cc5175297d71c",
# gl/ GitLab repo provider
"gl/binderhub-ci-repos%2Fcached-minimal-dockerfile/HEAD",
"gl/binderhub-ci-repos%2Fcached-minimal-dockerfile/596b52f10efb0c9befc0c4ae850cc5175297d71c",
])
@pytest.mark.remote
async def test_build(app, needs_build, needs_launch, always_build, slug, pytestconfig):
"""
Test build a repo that is very quick and easy to build.
"""
# can't use mark.github_api since only some tests here use GitHub
if slug.startswith('gh/') and "not github_api" in pytestconfig.getoption('markexpr'):
pytest.skip("Skipping GitHub API test")
Expand Down

0 comments on commit 413247b

Please sign in to comment.