Skip to content

Instantly share code, notes, and snippets.

View geier's full-sized avatar
🐜
Slow but steady

Christian Geier geier

🐜
Slow but steady
View GitHub Profile
#!/usr/bin/python
# coding: utf-8
# Copyright (C) 2013 Patrick Totzke <patricktotzke@gmail.com>
# This file is released under the GNU GPL, version 3 or a later revision.
#
# adapted from example1.py and example3.collapse.py from the urwidtrees examples
from urwidtrees.tree import SimpleTree
from urwidtrees.decoration import CollapseIconMixin, DecoratedTree
from urwidtrees.nested import NestedTree
#!/usr/bin/python
# coding: utf-8
# Copyright (C) 2013 Patrick Totzke <patricktotzke@gmail.com>
# This file is released under the GNU GPL, version 3 or a later revision.
#
# adapted from example1.py and example3.collapse.py from the urwidtrees examples
from urwidtrees.tree import SimpleTree # noqa
from urwidtrees.decoration import CollapseIconMixin, DecoratedTree, CollapsibleIndentedTree, CollapsibleArrowTree # noqa
from urwidtrees.nested import NestedTree # noqa
@geier
geier / test.py
Last active February 15, 2018 22:03
from totest import function
import logging
import click_log
def test_function(caplog):
click_log.basic_config('test').setLevel(logging.DEBUG)
caplog.set_level(logging.WARNING)
assert 1 == function()
assert caplog.records == 1