Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
trungleduc committed Feb 7, 2024
1 parent c8fd0a3 commit f54d2cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions jupyterhub_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@

c.JupyterHub.services = []

# set default limits in the TLJH config in memory
tljh_config = load_config()
tljh_config["limits"]["memory"] = "2G"
tljh_config["limits"]["cpu"] = 2

# set default limits in the TLJH config in memory
# tljh_config["limits"]["memory"] = "2G"
# tljh_config["limits"]["cpu"] = 2

# set CPU and memory based on machine profiles
tljh_config["limits"]["machine_profiles"] = [
Expand Down
3 changes: 2 additions & 1 deletion tljh_repo2docker/tests/test_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ async def test_images_list_admin(app):
cookies = await app.login_user('admin')
r = await get_page('environments', app, cookies=cookies, allow_redirects=False)
r.raise_for_status()
assert '{"images": [], "default_mem_limit": "None", "default_cpu_limit":"None"}' in r.text
print(r.text)
assert '{"images": [], "default_mem_limit": "None", "default_cpu_limit":"None", "machine_profiles": []}' in r.text


@pytest.mark.asyncio
Expand Down

0 comments on commit f54d2cf

Please sign in to comment.