66 Commits

Author SHA1 Message Date
Thomas Holder
9dcb2091cd Support running all tests with pytest, make --no-mmlibs --no-undo the default (#333)
* Support running all tests with pytest

* Make --no-mmlibs --no-undo the default

These tests seem unsupported by modern PyMOL versions (like 2.5.6), see
https://github.com/schrodinger/pymol-testing/issues/9

Add `--with-mmlibs` and `--with-undo` options to enable these tests.

* Require PyMOL 2.6 for testLoadPLY
2024-01-31 03:10:03 -05:00
Thomas Holder
adfcfcaf7e Fix for pytest 6.2.5 (#6) 2023-05-19 12:51:10 -04:00
Jarrett Johnson
666ce10b82 Improve pytest tests support 2023-04-15 15:47:44 -04:00
Jarrett Johnson
4945cad8fb undo tests with pytest 2023-04-14 14:30:28 -04:00
Jarrett Johnson
7ff0f6bf7c Replace imp with importlib 2022-09-09 15:53:26 -04:00
Jarrett Johnson
ddc8fbddc2 Undo reset decorator 2021-04-22 06:52:55 -04:00
Thomas Holder
b732d44335 Fix ray_color_ramps test for PYMOL-3528 2021-04-19 12:09:03 +02:00
Thomas Holder
f1767256ba Fix get_capabilities for old PyMOL versions 2020-10-22 09:50:53 +02:00
Thomas Holder
985d0114b7 Skip writing timings with PYMOLTESTTIMINGS=none 2020-10-08 12:40:18 +02:00
Jarrett Johnson
944aeaf7cd Enable UndoManager by default for undo tests 2020-10-02 13:07:43 -04:00
Thomas Holder
b42e74c531 test for PYMOL-3216 2020-07-15 11:33:26 +02:00
Thomas Holder
7622d11016 disable freemol test for 2.5 2020-05-27 10:59:53 +02:00
Jarrett Johnson
db29700606 multi-undo testing; creating.py tests 2020-03-17 13:56:54 -04:00
Thomas Holder
8bd2ad26ab --no-undo 2019-08-30 17:51:26 +02:00
Thomas Holder
bce1e74ec3 testing.py: __file__ from current frame 2017-11-28 11:23:49 +01:00
Thomas Holder
a69b402440 revert accidental changes from 16a760a8 2017-10-26 08:52:38 +02:00
Thomas Holder
16a760a8e5 --no-mmlibs 2017-10-05 14:48:36 +02:00
Thomas Holder
7292105b8a cli: check for --run 2017-10-02 07:08:00 +02:00
Thomas Holder
869332f7cc cli: check for -- args 2017-09-30 18:18:26 +02:00
Thomas Holder
c54c9c1f93 PYMOL-2921 2017-09-15 11:28:45 +02:00
Thomas Holder
cf3b7f8004 save_imagearray 2017-06-02 12:47:04 +02:00
Thomas Holder
1dfa2a127a prepare for settings defaults changes 2017-01-03 12:16:10 -05:00
Thomas Holder
6b39328dcc fix ambient-only tests for open-source 2016-12-05 13:26:45 -05:00
Thomas Holder
8b340c6b75 cmd.update() test 2016-11-18 17:46:02 -05:00
Thomas Holder
80f426f959 make tests Python3 compatible 2015-12-03 09:19:20 -05:00
Thomas Holder
ec1a47ad4b unset -> set ..., 0 2015-05-22 18:29:39 -04:00
Thomas Holder
de5791f4e5 edu no-ray 2015-03-14 14:30:53 -04:00
Thomas Holder
c637d2e60d allow "from PIL import Image" 2015-03-05 09:50:16 -05:00
Blaine Bell
87dba2886a took testFocalBlur out of win64
- this is to avoid the crash for now
2015-03-04 17:34:21 -05:00
Thomas Holder
6d7ed0a7f9 decorator no_edu: not PYMOL_EDU -> PYMOL_EDU 2015-03-04 11:35:41 -05:00
Blaine Bell
d3bfa91336 fixed freemol decorator 2015-03-04 11:27:30 -05:00
Blaine Bell
d4b194d489 added no_edu decorator, added it to freemol, and morph tests 2015-03-04 11:20:10 -05:00
Blaine Bell
3e4e7bc06c added first argument for cmd name in ArgumentParser()
- this is to get testing.py to run properly from within PyMOL
2015-02-27 09:57:27 -05:00
Thomas Holder
dde71163a2 fix test for PYMOL-1675
- sync after draw fixes the failing test
- some testing.py improvements: if "assertImageEqual" or
  "assertImageHas(Not)?Color" fails, then save image (or diff image) to
  temporary file for debugging
2014-10-18 21:20:48 -04:00
Thomas Holder
ebee9c7704 reps tests 2014-10-13 12:07:56 -04:00
Thomas Holder
b81c39bce2 pymol.__main__ 2014-10-01 22:23:45 -04:00
Thomas Holder
8cb9c7c5e8 testLoad_map, testLoad_idx 2014-09-30 18:25:37 -04:00
Blaine Bell
a229a5a5bf if 'xml' is not in kwargs, add it 2014-07-08 11:45:04 -04:00
Blaine Bell
87acde614c added import to shutil 2014-07-08 11:03:35 -04:00
Blaine Bell
78966e382f added deferred_rmtree to defer tmp directory removals in case they fail on windows 2014-07-08 10:49:47 -04:00
Blaine Bell
ba8963e136 fixed junit output to put into directories, where each test has a separate xml file 2014-07-03 14:30:38 -04:00
Blaine Bell
bb8ed16e1c moved all tests to tests subdirectory 2014-07-03 10:30:59 -04:00
Blaine Bell
7ab3c34161 added xmlrunner, --xml writing test results to XML 2014-07-03 10:24:12 -04:00
Blaine Bell
2599419a85 took debug statements out 2014-06-27 13:39:10 -04:00
Blaine Bell
022a3ebb18 more debug for testing.py hanging 2014-05-23 18:23:02 -04:00
Blaine Bell
84838bfc82 fixed previous print statements 2014-05-23 16:33:31 -04:00
Blaine Bell
f28f41d415 added stuff to print statement in testing.py for debugging.... 2014-05-23 15:28:34 -04:00
Blaine Bell
728fabe3dc added one print statement at the beginning of testing.py to see if build test still works 2014-05-23 15:12:55 -04:00
Blaine Bell
430fca15cc Revert "put in print statements to test testing.py on mac when automated"
This reverts commit b71911f3b4.
2014-05-23 15:02:15 -04:00
Blaine Bell
b71911f3b4 put in print statements to test testing.py on mac when automated 2014-05-23 13:13:48 -04:00