madscatt / zazzie

development branch
GNU General Public License v3.0
2 stars 3 forks source link

extract utilities tests #206

Open madscatt opened 2 months ago

madscatt commented 2 months ago

Update the system integration tests to work in Python 3. Run tests and move module to production.

madscatt commented 1 month ago

They were updated for Python3 and unit tests. Many tests are passing, but nine are failing. Writing test scripts to run the failed tests (at least test_14) indicates that there is something wrong with pytest and not the module. Current test output:


-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================================== Short test summary info ===================================================
FAILED test_extract_utilities.py::Test_Extract_Utilities::test_14 - OSError: Failed to open file
FAILED test_extract_utilities.py::Test_Extract_Utilities::test_2 - OSError: Failed to open file
FAILED test_extract_utilities.py::Test_Extract_Utilities::test_20 - FileNotFoundError: [Errno 2] No such file or directory: 'run_0/extract_utilities/chosen_text_pdb_input.pdb'
FAILED test_extract_utilities.py::Test_Extract_Utilities::test_26 - FileNotFoundError: [Errno 2] No such file or directory: 'run_0/extract_utilities/sascalc/neutron_D2Op_100'
FAILED test_extract_utilities.py::Test_Extract_Utilities::test_32 - FileNotFoundError: [Errno 2] No such file or directory: 'run_0/extract_utilities/xtal2sas'
FAILED test_extract_utilities.py::Test_Extract_Utilities::test_38 - FileNotFoundError: [Errno 2] No such file or directory: 'run_0/extract_utilities/cryson'
FAILED test_extract_utilities.py::Test_Extract_Utilities::test_44 - FileNotFoundError: [Errno 2] No such file or directory: 'run_0/extract_utilities/crysol'
FAILED test_extract_utilities.py::Test_Extract_Utilities::test_51 - OSError: Failed to open file
FAILED test_extract_utilities.py::Test_Extract_Utilities::test_8 - FileNotFoundError: [Errno 2] No such file or directory: 'run_0/extract_utilities/chosen_text.pdb'
==================================== 9 failed, 42 passed, 49 warnings in 68.42s (0:01:08) ====================================
(base) curtisj@PN130556 extract_utilities %