File: test_script_sparkline.py

package info (click to toggle)
python-milc 1.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 788 kB
  • sloc: python: 1,868; sh: 55; makefile: 3
file content (7 lines) | stat: -rw-r--r-- 336 bytes parent folder | download
1
2
3
4
5
6
7
from .common import check_assert, check_command, check_returncode


def test_sparkline():
    result = check_command('./sparkline', '--no-color')
    check_returncode(result)
    check_assert(result, result.stdout == 'ℹ sparkline1: ▄▄▃▅ ▆▃█▂▁▁\nℹ sparkline2: ▁▁██\nℹ sparkline3: ▁▁▅▅██\n')