Skip to content

Commit

Permalink
update error message in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaybio committed Sep 26, 2024
1 parent ab392a5 commit aac7fea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions tests/test_operations/test_correlation_threshold.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ def test_correlation_threshold_featureinfer():
)

expected_message = (
"No features found. Pycytominer expects CellProfiler features by default. "
"If you're using non-CellProfiler data, please specify the feature space using the `features` parameter."
"No features or metadata found. Pycytominer expects CellProfiler column names by default. "
"If you're using non-CellProfiler data, please do not 'infer' features. "
"Instead, check if the function has a `features` or `meta_features` parameter, and input column names manually."
)
assert expected_message in str(nocp.value)

Expand Down
5 changes: 3 additions & 2 deletions tests/test_operations/test_get_na_columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def test_get_na_columns_featureinfer():
)

expected_message = (
"No features found. Pycytominer expects CellProfiler features by default. "
"If you're using non-CellProfiler data, please specify the feature space using the `features` parameter."
"No features or metadata found. Pycytominer expects CellProfiler column names by default. "
"If you're using non-CellProfiler data, please do not 'infer' features. "
"Instead, check if the function has a `features` or `meta_features` parameter, and input column names manually."
)
assert expected_message in str(nocp.value)
5 changes: 3 additions & 2 deletions tests/test_operations/test_variance_threshold.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ def test_variance_threshold_featureinfer():
)

expected_message = (
"No features found. Pycytominer expects CellProfiler features by default. "
"If you're using non-CellProfiler data, please specify the feature space using the `features` parameter."
"No features or metadata found. Pycytominer expects CellProfiler column names by default. "
"If you're using non-CellProfiler data, please do not 'infer' features. "
"Instead, check if the function has a `features` or `meta_features` parameter, and input column names manually."
)
assert expected_message in str(nocp.value)

Expand Down

0 comments on commit aac7fea

Please sign in to comment.