Skip to content

Commit

Permalink
We haven't had any "scripts in the bin folder" for a while
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Feb 29, 2024
1 parent b319eb4 commit 2c5c148
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tests/commands/test_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,6 @@
TOOL_NAME = "fontbakery"


def test_list_subcommands_has_all_scripts():
"""Tests if the output from running `fontbakery --list-subcommands` matches
the fontbakery scripts within the bin folder and the promoted profiles."""
import fontbakery.commands
from fontbakery.cli import CLI_PROFILES

commands_dir = os.path.dirname(fontbakery.commands.__file__)

scripts = [
f.rstrip(".py").replace("_", "-")
for f in os.listdir(commands_dir)
if (f.endswith(".py") and not f.startswith("_"))
]
scripts = scripts + [("check-" + i).replace("_", "-") for i in CLI_PROFILES]
subcommands = (
subprocess.check_output([TOOL_NAME, "--list-subcommands"]).decode().split()
)
assert sorted(scripts) == sorted(subcommands)


def test_list_checks_option(capfd):
"""Test if 'fontbakery <subcommand> --list-checks' can run successfully and output
the expected content."""
Expand Down

0 comments on commit 2c5c148

Please sign in to comment.