Skip to content
Browse files

Fixed test_bar.test_err

  • Loading branch information...
1 parent 8e91986 commit 98080bc5fd72474ff25da1c80bcc00db4bf29b32 @cjbarnes18 cjbarnes18 committed
Showing with 13 additions and 3 deletions.
  1. +13 −3 test/test_bar.py
View
16 test/test_bar.py
@@ -251,12 +251,22 @@ class MultiStretchConf(GeomConf):
]
class ErrConf:
- pass
+ main = None
+ keys = []
+ mouse = []
+ groups = [libqtile.manager.Group("a")]
+ layouts = [libqtile.layout.stack.Stack(stacks=1)]
+ floating_layout = libqtile.layout.floating.Floating()
+ screens = [
+ libqtile.manager.Screen(
+ left=libqtile.bar.Bar([], 10),
+ )
+ ]
+
@Xephyr(True, ErrConf(), False)
def test_err(self):
- config = ErrConf()
- self.qtileRaises(libqtile.confreader.ConfigError, config)
+ self.qtileRaises(libqtile.confreader.ConfigError, ErrConf())
class TestWidget(libqtile.widget.base._Widget):

0 comments on commit 98080bc

Please sign in to comment.
Something went wrong with that request. Please try again.