Skip to content

Commit

Permalink
complete test
Browse files Browse the repository at this point in the history
  • Loading branch information
qbarthelemy committed Jan 9, 2024
1 parent a8fc7f2 commit 7fc4570
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api.rst
Expand Up @@ -19,7 +19,7 @@ SPD Matrices Estimation
BlockCovariances
CospCovariances
Coherences
HankelCovariances
TimeDelayCovariances
Kernels
Shrinkage

Expand Down
10 changes: 10 additions & 0 deletions tests/test_estimation.py
Expand Up @@ -12,6 +12,7 @@
XdawnCovariances,
CospCovariances,
TimeDelayCovariances,
HankelCovariances,
Coherences,
Shrinkage,
BlockCovariances,
Expand Down Expand Up @@ -80,6 +81,15 @@ def test_time_delay_covariances(delays, rndstate):
assert ~is_hankel(covmats[0])


def test_hankel_covariances():
import warnings
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter("always")
HankelCovariances()
assert len(w) == 1
assert issubclass(w[-1].category, DeprecationWarning)


@pytest.mark.parametrize("estimator", estim)
@pytest.mark.parametrize("svd", [None, 2, 3, 4])
@pytest.mark.parametrize("n_classes", [2, 3, 4])
Expand Down

0 comments on commit 7fc4570

Please sign in to comment.