From 886effc566ff176c72e603964e5de380e9a8c43e Mon Sep 17 00:00:00 2001 From: Tom Close Date: Mon, 18 Mar 2024 15:34:12 +1100 Subject: [PATCH] added tests to fileformats package --- .../tests/test_generate_sample_data.py | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 related-packages/fileformats-extras/fileformats/extras/medimage_afni/tests/test_generate_sample_data.py diff --git a/related-packages/fileformats-extras/fileformats/extras/medimage_afni/tests/test_generate_sample_data.py b/related-packages/fileformats-extras/fileformats/extras/medimage_afni/tests/test_generate_sample_data.py new file mode 100644 index 0000000..82b81d3 --- /dev/null +++ b/related-packages/fileformats-extras/fileformats/extras/medimage_afni/tests/test_generate_sample_data.py @@ -0,0 +1,39 @@ +import pytest +from fileformats.medimage_afni import ( + OneD, + ThreeD, + R1, + All1, + Dset, + Head, +) + + +@pytest.xfail(reason="generate_sample_data not implemented", raises=NotImplementedError) +def test_generate_sample_oned_data(): + assert isinstance(OneD.sample(), OneD) + + +@pytest.xfail(reason="generate_sample_data not implemented", raises=NotImplementedError) +def test_generate_sample_threed_data(): + assert isinstance(ThreeD.sample(), ThreeD) + + +@pytest.xfail(reason="generate_sample_data not implemented", raises=NotImplementedError) +def test_generate_sample_r1_data(): + assert isinstance(R1.sample(), R1) + + +@pytest.xfail(reason="generate_sample_data not implemented", raises=NotImplementedError) +def test_generate_sample_all1_data(): + assert isinstance(All1.sample(), All1) + + +@pytest.xfail(reason="generate_sample_data not implemented", raises=NotImplementedError) +def test_generate_sample_dset_data(): + assert isinstance(Dset.sample(), Dset) + + +@pytest.xfail(reason="generate_sample_data not implemented", raises=NotImplementedError) +def test_generate_sample_head_data(): + assert isinstance(Head.sample(), Head)