Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions tests/integration/test_dyn_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,18 @@


# Use the environment variable to make it easy with pytest (it does not like cli arguments)
diracPath = os.environ['DIRAC']

# diracPath = '/home/chaen/dirac/DIRAC/DataManagementSystem/Client/'
diracRoot = os.environ['DIRAC']
diracPath = diracRoot + "/src/DIRAC"

# Find all the packages used by DIRAC
g = findimports.ModuleGraph()
directories = next(os.walk(diracPath))[1]
directories.remove('docs')

for dir in directories:
g.parsePathname('%s/%s' % (diracPath, dir))

g.parseFile('%s/%s' % (diracPath, '__init__.py'))
g.parseFile('%s/%s' % (diracPath, 'setup.py'))
g.parseFile('%s/%s' % (diracRoot, 'setup.py'))

g = g.packageGraph(packagelevel=1).collapseTests()
moduleNames = set([i for m in g.listModules() for i in m.imports])
Expand Down