How to use the termgraph.termgraph.print_row function in termgraph

To help you get started, we’ve selected a few termgraph examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mkaz / termgraph / tests / test_termgraph.py View on Github external
def test_print_row_prints_correct_block_count(self):
        with patch('sys.stdout', new=StringIO()) as output:
            tg.print_row('2007: 183.32', 17, 1.0, None)
            output = output.getvalue().strip()
            assert output == '▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇'