Skip to content

Commit

Permalink
Reinit between testing frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrettSJohnson committed Jun 11, 2024
1 parent a5b0e9c commit e84712f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions testing/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,7 @@ def run_testfiles(filenames='all', verbosity=2, out=sys.stderr, **kwargs):
resultclass=PyMOLTestResult, verbosity=int(verbosity)).run(suite)

# Run pytest files if any
cmd.reinitialize()
pytest_nfail = pytest.main(['-v', *map(str, pytest_files)]) if pytest_files else 0

while deferred_unlink:
Expand Down
2 changes: 2 additions & 0 deletions testing/tests/api/test_importing.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
from pymol.querying import cif_get_array


@test_utils.requires_version("3.0")
def test_bcif():
cmd.load(test_utils.datafile("115d.bcif.gz"))
assert cmd.count_atoms() == 407

@test_utils.requires_version("3.0")
def test_bcif_array():
obj_name = "foo"
cmd.set('cif_keepinmemory', 1)
Expand Down

0 comments on commit e84712f

Please sign in to comment.