mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-04 21:54:27 +08:00
* 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
31 lines
703 B
Python
Executable File
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()
|