Files
rdkit/Code/GraphMol/UnitTestQueryMol.py
Greg Landrum 24f1737839 Remove a bunch of Python2-related warts (#2315)
* remove all of the "from __future__" imports

* remove the first batch of rdkit.six imports/uses

* next step of rdkit.six removal

* removing xrange, range, and some maps

* next round of removals

* next round of cleanups

* fix inchi test

* last bits of "from rdkit.six" are gone

* and the last of the six stuff is gone

* strange importlib problem
2019-03-06 20:43:49 -05:00

31 lines
703 B
Python
Executable File

# Copyright (C) 2001 greg Landrum and Rational Discovery LLC
"""basic unit testing code for query mols
"""
from rdkit import RDConfig
import unittest, os, sys
class TestCase(unittest.TestCase):
def setUp(self):
print('\n%s: ' % self.shortDescription(), end='')
# decipher the name of the executable
if (sys.platform == 'win32'):
exe = 'QueryMolTest___Win32_Debug/QueryMolTest.exe'
else:
exe = 'querytest.exe'
# update to use the full path
self.exe = '%s/Code/GraphMol/%s' % (RDConfig.RDBaseDir, exe)
def test1(self):
""" the basic test """
res = os.system(self.exe)
assert res == 0, 'test failed'
if __name__ == '__main__':
unittest.main()