Skip to content

Commit

Permalink
Modify test to check the conda env path
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Jan 2, 2023
1 parent 8248ec2 commit 08b5292
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_aiidalab.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ def test_aiidalab_available(aiidalab_exec, nb_user, variant):
def test_create_conda_environment(aiidalab_exec, nb_user):
output = aiidalab_exec("conda create -y -n tmp", user=nb_user).decode().strip()
assert "conda activate tmp" in output
# New conda environments should be created in ~/.conda/envs/
output = aiidalab_exec("conda env list", user=nb_user).decode().strip()
assert f"/home/{nb_user}/.conda/envs/tmp" in output


def test_correct_python_version_installed(aiidalab_exec, python_version):
Expand Down

0 comments on commit 08b5292

Please sign in to comment.