File: test_list.py

package info (click to toggle)
rdkit 202009.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 129,624 kB
  • sloc: cpp: 288,030; python: 75,571; java: 6,999; ansic: 5,481; sql: 1,968; yacc: 1,842; lex: 1,254; makefile: 572; javascript: 461; xml: 229; fortran: 183; sh: 134; cs: 93
file content (62 lines) | stat: -rwxr-xr-x 2,676 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
tests = [("python", "UnitTestChem.py", {}), ("python", "UnitTestChemv2.py", {}),
         ("python", "UnitTestChemAtom.py", {}), ("python", "UnitTestChemBond.py", {}),
         ("python", "UnitTestChemSmarts.py", {}), ("python", "UnitTestFragmentDescriptors.py", {}),
         ("python", "UnitTestGraphDescriptors_2.py", {}), ("python", "UnitTestLipinski.py", {}),
         ("python", "UnitTestMCS.py", {}), ("python", "UnitTestOldBugs.py", {}),
         ("python", "UnitTestSATIS.py", {}), ("python", "UnitTestSmiles.py", {}),
         ("python", "UnitTestSuppliers.py", {}), ("python", "UnitTestSurf.py", {}),
         ("python", "UnitTestMol3D.py", {}), ("python", "UnitTestCatalog.py", {}),
         ("python", "UnitTestDescriptors.py", {}), ("python", "UnitTestInchi.py", {}),
         ("python", "UnitTestFunctionalGroups.py", {}), ("python", "UnitTestCrippen.py", {}),
         ("python", "UnitTestPandasTools.py", {}), ("python", "UnitTestDocTestsChem.py", {}),
         ("python", "UnitTestFeatFinderCLI.py", {}), ("python", "UnitTestQED.py", {}),
         ("python", "UnitTestSaltRemover.py", {}), ("python", "test_list.py", {
           'dir': 'AtomPairs'
         }), ("python", "test_list.py", {
           'dir': 'ChemUtils'
         }), ("python", "test_list.py", {
           'dir': 'EState'
         }), ("python", "test_list.py", {
           'dir': 'FeatMaps'
         }), ("python", "test_list.py", {
           'dir': 'Fingerprints'
         }), ("python", "test_list.py", {
           'dir': 'Pharm2D'
         }), ("python", "test_list.py", {
           'dir': 'Pharm3D'
         }), ("python", "test_list.py", {
           'dir': 'Subshape'
         }), ("python", "test_list.py", {
           'dir': 'Suppliers'
         }), ("python", "test_list.py", {
           'dir': 'Scaffolds'
         }), ("python", "test_list.py", {
           'dir': 'Draw'
         }), ("python", "test_list.py", {
           'dir': 'Fraggle'
         }), ("python", "test_list.py", {
           'dir': 'SimpleEnum'
         }), ("python", "test_list.py", {
           'dir': 'Features'
         }), ("python", "test_list.py", {
           'dir': 'MolStandardize'
         })]

# only attempt the MolKey tests if we have the pre-reqs:
try:
  from rdkit.Chem.MolKey import MolKey
  tests.append(("python", "test_list.py", {'dir': 'MolKey'}))
except ImportError:
  pass

longTests = [
  ("python", "UnitTestArom.py", {}),
  ("python", "UnitTestGraphDescriptors.2.py -l", {}),
  ("python", "UnitTestSurf.py -l", {}),
]

if __name__ == '__main__':
  import sys
  from rdkit import TestRunner
  failed, tests = TestRunner.RunScript('test_list.py', 0, 1)
  sys.exit(len(failed))