Skip to content

Commit 445f67f

Browse files
committed
Check canonical atoms in OK file too
1 parent 4874f6a commit 445f67f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test_make_mmcif.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,18 @@ def test_histidine(self):
259259

260260
def test_check_non_canon_atom_standard(self):
261261
"""Test check for non-canonical atom names, standard restypes"""
262+
minicif = utils.get_input_file_name(TOPDIR, 'mini.cif')
262263
incif = utils.get_input_file_name(TOPDIR, 'non_canon_atom.cif')
263264

264265
# Should work fine without check
265266
subprocess.check_call([sys.executable, MAKE_MMCIF, incif])
266267
os.unlink('output.cif')
267268

269+
# Should also work fine for file with canonical atom names
270+
subprocess.check_call([sys.executable, MAKE_MMCIF,
271+
"--check_atom_names=standard", minicif])
272+
os.unlink('output.cif')
273+
268274
# Should fail with check enabled
269275
r = subprocess.Popen([sys.executable, MAKE_MMCIF,
270276
"--check_atom_names=standard", incif],

0 commit comments

Comments
 (0)