Files
openfe/openfecli/tests/test_plugins.py
Alyssa Travitz 036869ae81 Ci/add ruff format part4 - the final format! (#1623)
* format cli tests top level

* format cli commands tests

* format cli parameters tests
2025-10-24 23:50:52 +00:00

25 lines
727 B
Python

import click
from openfecli.plugins import OFECommandPlugin
@click.command("fake")
def fake():
pass # -no-cov- a fake placeholder click subcommand
class TestOFECommandPlugin:
def setup_method(self):
self.plugin = OFECommandPlugin(
command=fake,
section="Some Section",
requires_ofe=(0, 0, 1),
)
def test_plugin_setup(self):
assert self.plugin.command is fake
assert isinstance(self.plugin.command, click.Command)
assert self.plugin.section == "Some Section"
assert self.plugin.requires_lib == self.plugin.requires_cli
assert self.plugin.requires_lib == (0, 0, 1)
assert self.plugin.requires_cli == (0, 0, 1)