kopia lustrzana https://github.com/jupyterhub/repo2docker
adhere to lint
rodzic
f508bf167e
commit
2bfbf44efa
|
@ -14,13 +14,17 @@ assert sorted(specs) == ["python2", "python3"], specs.keys()
|
|||
import json
|
||||
from subprocess import check_output
|
||||
|
||||
envs = json.loads(check_output(["/tmp/bin/micromamba", "env", "list", "--json"]).decode("utf8"))
|
||||
envs = json.loads(
|
||||
check_output(["/tmp/bin/micromamba", "env", "list", "--json"]).decode("utf8")
|
||||
)
|
||||
assert envs == {
|
||||
"envs": ["/srv/conda", "/srv/conda/envs/kernel", "/srv/conda/envs/notebook"]
|
||||
}, envs
|
||||
|
||||
pkgs = json.loads(
|
||||
check_output(["/tmp/bin/micromamba", "list", "-n", "kernel", "--json"]).decode("utf8")
|
||||
check_output(["/tmp/bin/micromamba", "list", "-n", "kernel", "--json"]).decode(
|
||||
"utf8"
|
||||
)
|
||||
)
|
||||
pkg_names = [pkg["name"] for pkg in pkgs]
|
||||
assert "ipykernel" in pkg_names, pkg_names
|
||||
|
|
Ładowanie…
Reference in New Issue