Skip to content

Commit

Permalink
build: fix old multiformats-config pkg dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
makkus committed Nov 10, 2023
1 parent 520b6f3 commit 921a9f5
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ jobs:
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Retrieve release distributions
- name: Retrieve build distributions
uses: actions/download-artifact@v3
with:
name: build-dists
Expand Down
1 change: 0 additions & 1 deletion ci/conda/typing-validation/conda-pkg-patch.yaml
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
pkg_url: "xx"
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ dev_testing = [
"flake8>=3.8.4",
"jsonschema>=4.0.0",
"mypy>=0.800",
"pandas-stubs",
"pytest>=6.2.2",
"pytest-cov>=2.11.1",
"pytest-html>=3.1.0",
Expand Down Expand Up @@ -255,6 +256,7 @@ dev_utils = [
"flake8>=3.8.4",
"ipython",
"mypy>=0.800",
"pandas-stubs",
"pip-licenses>=3.3.0",
"pre-commit>=2.9.3",
"pytest>=6.2.2",
Expand Down
6 changes: 3 additions & 3 deletions src/kiara/interfaces/cli/context/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,18 @@ def delete_context(
ctx,
context_name: Union[str, None] = None,
force: bool = False,
all_contexts: bool = False,
all: bool = False,
):
"""Delete a context and all its stored values."""
kiara_config: KiaraConfig = ctx.obj.kiara_config

if not context_name:
if all_contexts:
if all:
_context_name = "ALL_CONTEXTS"
else:
_context_name = ctx.obj.kiara_context_name
else:
if all_contexts:
if all:
if context_name != "ALL_CONTEXTS":
terminal_print()
terminal_print(
Expand Down
27 changes: 27 additions & 0 deletions tests/test_cli/test_context_subcommands.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-

# Copyright (c) 2021, University of Luxembourg / DHARPA project
# Copyright (c) 2021, Markus Binsteiner
#
# Mozilla Public License, version 2.0 (see LICENSE or https://www.mozilla.org/en-US/MPL/2.0/)
from click.testing import CliRunner

from kiara.interfaces.cli import cli


def test_context_subcommand():

runner = CliRunner()
result = runner.invoke(cli, "context")
assert result.exit_code == 0
assert "context related sub-commands" in result.stdout


# def test_delete_context_subcommand():
#
# runner = CliRunner()
# result = runner.invoke(cli, "module list")
#
# assert result.exit_code == 0
# assert "logic.or" in result.stdout
# assert "logic.xor" not in result.stdout

0 comments on commit 921a9f5

Please sign in to comment.