Skip to content

Commit

Permalink
Fix config show
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-hilden committed Sep 13, 2021
1 parent 270a0e1 commit de247c8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mold/cli/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ def configure_show(name: str = None):
print(f' - {c.name}: {c.description} ({t})')

files = {
temp.target_path for tool in config.components for temp in tool.templates()
temp.target_path
for comp in config.components if isinstance(comp, Tool)
for temp in comp.templates()
}
parts = {}
for file in files:
Expand Down
15 changes: 15 additions & 0 deletions tests/cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from subprocess import run


class TestCLI:
def test_config_list(self):
pc = run(['mold', 'config', 'list'])
assert pc.returncode == 0

def test_config_show(self):
pc = run(['mold', 'config', 'show', 'python-library'])
assert pc.returncode == 0

def test_prefill_show(self):
pc = run(['mold', 'prefill', 'show'])
assert pc.returncode == 0

0 comments on commit de247c8

Please sign in to comment.