How to use the pydeps.pydeps.parse_args function in pydeps

To help you get started, we’ve selected a few pydeps 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 thebjorn / pydeps / tests / simpledeps.py View on Github external
def empty(args):
    args = pydeps.parse_args(['foo', '--no-config'] + args.split())
    args.pop('fname')
    return args
github thebjorn / pydeps / tests / test_dep2dot.py View on Github external
def test_dep2dot():
    files = """
        foo:
            - __init__.py
            - a.py: |
                from . import b
            - b.py
    """
    with create_files(files) as workdir:
        assert simpledeps('foo') == [
            'foo.b -> foo.a'
        ]
        pydeps._pydeps(**pydeps.parse_args(["foo", "--noshow"]))
        assert os.path.exists(os.path.join(workdir, 'foo.svg'))