Skip to content

Commit dc421ae

Browse files
committed
refactor: tests: boxes: Include to_write_box in WriteBox fixture.
The write_box() fixture function currently does not have a to_write_box attribute which causes test failures for to_write_box calls inside the keypress tests. This commit sets a default to support such calls.
1 parent 6a611d0 commit dc421ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/ui_tools/test_boxes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ def write_box(self, mocker, users_fixture, user_groups_fixture,
2929
{'name': stream['name']} for stream in
3030
streams_fixture], key=lambda stream: stream['name'].lower())
3131

32+
write_box.to_write_box = None
33+
3234
return write_box
3335

3436
def test_init(self, write_box):

0 commit comments

Comments
 (0)