You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pytest was originally failing during test collection. Deleting test files in groups finally let me isolate tests/test_cyto_utils/test_DeepProfiler_processing.py as the problematic file (Permalink). A substantial amount of processing for DeepProfiler occurs outside of functions. When an error is encountered during these functions pytest fails during test collection with no informative error messages.
Expected behavior
Pytest should report errors that are encountered while preparing data package to run tests for py
Additional information
It was suggested by @d33bshere that the code for generating the deepprofiler python package should be moved into a pytest fixture.
The text was updated successfully, but these errors were encountered:
kenibrewer
changed the title
Bug: DeepProfiler test failure (possibly due to compute resources)
Bug: DeepProfiler tests fail on machines with limited resources
Aug 5, 2023
kenibrewer
changed the title
Bug: DeepProfiler tests fail on machines with limited resources
Bug: Pytest fails during test collection when there is an error in test_DeepProfiler_processing.py
Aug 5, 2023
I have updated this issue to represent the fact that there are two bugs that need to be dealt with separately. One for the fact that pytest fails during test collection. And another issue for the use of an large dataset for testing purposes that crashes on smaller machines.
* Adjusted postCreateCommand for poetry
* Refactored to put processing in function #304
* Fixed test paths
* Adjusted workflows for poetry
* Add pytest-cov to dependencies
* Fixed python version in workflows
* Fixed action version
* Changed to new default branch name
* Added Python .gitignore template content
* Removed poetry export precommit hook
* Added master back to workflows to allow pipelines to run during transition
* Changed global variables to all caps
* Removed poetry-lock precommit hook
* Changed poetry setup to match postCreateCommand.sh
* Changed paths and files to more inclusive naming
* Renamed test data paths
* Update CITATION.cff and version
* Updated collate to use sqlite3 module not CLI
* Updated poetry.lock
* Adjust test_DeepProfiler to use fixtures
* Documentation updates for poetry
* Fixed misconfigured assertions #314
* Rename python-app.yml to pytest.yml
* Added pytest-cov for cli arg support
* Update author list
* Add sqlite connection/cursor closing
* Add connection.close() to collate
---------
Co-authored-by: Ken Brewer <ken@kenbrewer.com>
Example code with output
Issue description
Pytest was originally failing during test collection. Deleting test files in groups finally let me isolate
tests/test_cyto_utils/test_DeepProfiler_processing.py
as the problematic file (Permalink). A substantial amount of processing for DeepProfiler occurs outside of functions. When an error is encountered during these functions pytest fails during test collection with no informative error messages.Expected behavior
Pytest should report errors that are encountered while preparing data package to run tests for py
Additional information
It was suggested by @d33bs here that the code for generating the deepprofiler python package should be moved into a pytest fixture.
The text was updated successfully, but these errors were encountered: