Skip to content

Commit

Permalink
Collect warnings differently in docker-test
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-el authored and anders-kiaer committed May 10, 2024
1 parent 148bb99 commit c1d884f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_docker_setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import warnings

import pytest

from webviz_config._dockerize._create_docker_setup import get_python_requirements
Expand Down Expand Up @@ -39,7 +41,8 @@
],
)
def test_derived_requirements(distributions, requirements):
with pytest.warns(None) as record:
with warnings.catch_warnings(record=True) as record:
warnings.simplefilter("always")
assert set(requirements).issubset(get_python_requirements(distributions))
assert len(record) == len(
[
Expand Down

0 comments on commit c1d884f

Please sign in to comment.