diff --git a/tests/exporter_test.py b/tests/exporter_test.py index 80b8f49..b2efb78 100644 --- a/tests/exporter_test.py +++ b/tests/exporter_test.py @@ -70,7 +70,10 @@ def test_mcstas_reduction_export_to_bytestream(reduced_data: NMXReducedData) -> ] with io.BytesIO() as bio: - export_as_nexus(reduced_data, bio) + with pytest.warns( + DeprecationWarning, match='Please use ``export_as_nxlauetof`` instead.' + ): + export_as_nexus(reduced_data, bio) with h5py.File(bio, 'r') as f: assert 'NMX_data' in f nmx_data: h5py.Group = f.require_group('NMX_data')