Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def empty(args):
args = pydeps.parse_args(['foo', '--no-config'] + args.split())
args.pop('fname')
return args
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'))