mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 15:27:17 +00:00
This feature also introduces the followiing changes * aur-search command now works as expected with multiterms * printer classes for managing of data print * --sort-by argument for aur-search subcommand instead of using package name * --quiet argument now has also --no-quite option * if --quite is supplied, the log level will be set to warn instead of critical to be able to see error messages * pretty_datetime function now also supports datetime objects * BuildStatus is now pure dataclass
23 lines
665 B
Python
23 lines
665 B
Python
from ahriman.application.formatters.configuration_printer import ConfigurationPrinter
|
|
|
|
|
|
def test_properties(configuration_printer: ConfigurationPrinter) -> None:
|
|
"""
|
|
must return non empty properties list
|
|
"""
|
|
assert configuration_printer.properties()
|
|
|
|
|
|
def test_properties_required(configuration_printer: ConfigurationPrinter) -> None:
|
|
"""
|
|
must return all properties as required
|
|
"""
|
|
assert all(prop.is_required for prop in configuration_printer.properties())
|
|
|
|
|
|
def test_title(configuration_printer: ConfigurationPrinter) -> None:
|
|
"""
|
|
must return non empty title
|
|
"""
|
|
assert configuration_printer.title() == "[section]"
|