Skip to content

Commit

Permalink
Update aaclust test
Browse files Browse the repository at this point in the history
  • Loading branch information
breimanntools committed Apr 8, 2024
1 parent 7a0e8db commit 441eb31
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ Welcome to the AAanalysis documentation!
:target: https://github.com/breimanntools/aaanalysis/blob/master/LICENSE
:alt: License

.. |CI/CD pipeline| image:: https://github.com/breimanntools/aaanalysis/workflows/main/badge.svg
:target: https://github.com/breimanntools/aaanalysis/actions
.. |CI/CD pipeline| image:: https://github.com/breimanntools/aaanalysis/actions/workflows/main.yml/badge.svg
:target: https://github.com/breimanntools/aaanalysis/actions/workflows/main.yml
:alt: CI/CD Pipeline

.. |Test Coverage| image:: https://github.com/breimanntools/aaanalysis/workflows/test_coverage/badge.svg
.. |Test Coverage| image:: https://github.com/breimanntools/aaanalysis/actions/workflows/test_coverage/badge.svg
:target: https://github.com/breimanntools/aaanalysis/actions
:alt: Test Coverage

.. |Code QL| image:: https://github.com/breimanntools/aaanalysis/workflows/codeql_analysis/badge.svg
.. |Code QL| image:: https://github.com/breimanntools/aaanalysis/actions/workflows/codeql_analysis/badge.svg
:target: https://github.com/breimanntools/aaanalysis/actions
:alt: CodeQL

Expand Down
9 changes: 5 additions & 4 deletions tests/unit/aaclust_tests/test_aaclust_name_clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,11 @@ def test_combination_valid_parameters(self, X, labels):
warnings.simplefilter("ignore", RuntimeWarning)
aa.AAclust().name_clusters(X, labels, names)
else:
with warnings.catch_warnings():
warnings.simplefilter("ignore", RuntimeWarning)
result = aa.AAclust().name_clusters(X, labels, names)
assert isinstance(result, list)
if n_unique_labels > 1:
with warnings.catch_warnings():
warnings.simplefilter("ignore", RuntimeWarning)
result = aa.AAclust().name_clusters(X, labels, names)
assert isinstance(result, list)

@given(X=npst.arrays(dtype=np.float64, shape=npst.array_shapes(min_dims=2, max_dims=2, max_side=50),
elements=some.floats(allow_nan=True, allow_infinity=True)))
Expand Down

0 comments on commit 441eb31

Please sign in to comment.