Buckets:
ktongue/docker_container / simsite /venv /lib /python3.14 /site-packages /matplotlib /tests /test_testing.py
| import warnings | |
| import pytest | |
| import matplotlib.pyplot as plt | |
| from matplotlib.testing.decorators import check_figures_equal | |
| def test_warn_to_fail(): | |
| warnings.warn("This should fail the test") | |
| def test_parametrize_with_check_figure_equal(a, fig_ref, b, fig_test): | |
| assert a == b | |
| def test_wrap_failure(): | |
| with pytest.raises(ValueError, match="^The decorated function"): | |
| def should_fail(test, ref): | |
| pass | |
| def test_check_figures_equal_extra_fig(fig_test, fig_ref): | |
| plt.figure() | |
| def test_check_figures_equal_closed_fig(fig_test, fig_ref): | |
| fig = plt.figure() | |
| plt.close(fig) | |
Xet Storage Details
- Size:
- 1.06 kB
- Xet hash:
- 9eb03a3879045fa793923017a1b58427c1989e92beaf7471cd03831a135ee5aa
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.