-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
todoman build started failing in Debian, probably because of a dependency update... Maybe you have an idea of what is going on? More info including logs is available at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1126253
Here is the error:
____________________________ test_todo_editor_list _____________________________
default_database = <todoman.model.Database object at 0x7faaae1f4590>
todo_factory = <function todo_factory.<locals>.inner at 0x7faaae59cbf0>
default_formatter = <todoman.formatters.DefaultFormatter object at 0x7faaae37b4d0>
tmpdir = local('/tmp/pytest-of-sbuild/pytest-0/test_todo_editor_list0')
def test_todo_editor_list(
default_database: Database,
todo_factory: Callable,
default_formatter: Formatter,
tmpdir: py.path.local,
) -> None:
tmpdir.mkdir("another_list")
default_database.paths = [
str(tmpdir.join("default")),
str(tmpdir.join("another_list")),
]
default_database.update_cache()
todo = todo_factory()
lists = list(default_database.lists())
editor = TodoEditor(todo, lists, default_formatter)
default_list = next(filter(lambda x: x.label == "default", editor.list_selector))
another_list = next(
filter(lambda x: x.label == "another_list", editor.list_selector)
)
assert editor.current_list == todo.list
assert default_list.label == todo.list.name
another_list.set_state(True)
editor._save_inner()
assert editor.current_list == todo.list
> assert another_list.label == todo.list.name
^^^^^^^^^^^^^^
E AttributeError: 'bool' object has no attribute 'name'
tests/test_ui.py:67: AttributeError
``
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels