Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
peytondmurray committed May 7, 2024
1 parent 84fce45 commit bc03847
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import yaml

from conda_store_server._internal import action, schema
from conda_store_server._internal.action.utils import logged_command


def get_installer_platform():
Expand Down Expand Up @@ -42,7 +43,7 @@ def write_file(filename, s):
"constructor",
"--help",
]
action.utils.logged_command(context, command)
logged_command(context, command)
except FileNotFoundError:
warnings.warn(
"Installer generation requires constructor: https://github.com/conda/constructor"
Expand Down Expand Up @@ -146,6 +147,6 @@ def write_file(filename, s):
get_installer_platform(),
str(tmp_dir),
]
action.utils.logged_command(context, command)
logged_command(context, command)

return installer_filename
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from conda_lock.conda_lock import run_lock

from conda_store_server._internal import action, conda_utils, schema, utils
from conda_store_server._internal.action.utils import logged_command


@action.action
Expand All @@ -27,10 +28,10 @@ def action_solve_lockfile(
json.dump(specification.dict(), f)

# The info command can be used with either mamba or conda
action.utils.logged_command(context, [conda_command, "info"])
logged_command(context, [conda_command, "info"])
# The config command is not supported by mamba
action.utils.logged_command(context, ["conda", "config", "--show"])
action.utils.logged_command(context, ["conda", "config", "--show-sources"])
logged_command(context, ["conda", "config", "--show"])
logged_command(context, ["conda", "config", "--show-sources"])

# conda-lock ignores variables defined in the specification, so this code
# gets the value of CONDA_OVERRIDE_CUDA and passes it to conda-lock via
Expand Down

0 comments on commit bc03847

Please sign in to comment.