File: test_script.py

package info (click to toggle)
pycallgraph 1.1.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 416 kB
  • sloc: python: 1,925; makefile: 47
file content (14 lines) | stat: -rw-r--r-- 342 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import subprocess


def execute(arguments):
    command = 'PYTHONPATH=. scripts/pycallgraph ' + arguments
    return subprocess.check_output(command, shell=True).decode('utf-8')


def test_help():
    assert 'Python Call Graph' in execute('--help')


def test_graphviz_help():
    assert '--font-name FONT_NAME' in execute('graphviz --help')