@@ -18,11 +18,28 @@ def test_get_deps_info():
1818
1919
2020def test_show_versions (capfd ):
21+ """Check that we have the expected packages in the output of `show_versions()`.
22+
23+ We use `:` in the assertion to be sure that we are robust to package
24+ version specifiers.
25+
26+ Non-regression test for:
27+ https://github.com/probabl-ai/skore/issues/987
28+ """
2129 show_versions ()
2230 captured = capfd .readouterr ()
23- assert "python" in captured .out
24- assert "executable" in captured .out
25- assert "machine" in captured .out
26- assert "pip" in captured .out
27- assert "setuptools" in captured .out
28- assert "skore" in captured .out
31+ assert "python:" in captured .out
32+ assert "executable:" in captured .out
33+ assert "machine:" in captured .out
34+ assert "skore:" in captured .out
35+ assert "pip:" in captured .out
36+ assert "setuptools:" in captured .out
37+ assert "diskcache:" in captured .out
38+ assert "fastapi:" in captured .out
39+ assert "numpy:" in captured .out
40+ assert "plotly:" in captured .out
41+ assert "pyarrow:" in captured .out
42+ assert "rich:" in captured .out
43+ assert "scikit-learn:" in captured .out
44+ assert "skops:" in captured .out
45+ assert "uvicorn:" in captured .out
0 commit comments