[tests] add pytest for core.output

see #642
This commit is contained in:
Tobias Witek 2020-06-20 14:51:49 +02:00
parent ef6ddad256
commit b2e92d816d
3 changed files with 177 additions and 4 deletions

View file

@ -171,7 +171,7 @@ class i3(object):
def stop(self):
return {"suffix": "\n]"}
def __separator_block(self, module, widget):
def separator_block(self, module, widget):
if not self.__theme.get("separator"):
return []
blk = block(self.__theme, module, widget)
@ -207,7 +207,7 @@ class i3(object):
continue
if module.hidden():
continue
blocks.extend(self.__separator_block(module, widget))
blocks.extend(self.separator_block(module, widget))
blocks.append(self.__content_block(module, widget))
core.event.trigger("next-widget")
return blocks