This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
OlderNewer