diff --git a/plio/io/tests/test_io_bae.py b/plio/io/tests/test_io_bae.py index 91966fa4f0e15f590e0109e9a29deb9c00546021..e3cc729aab6ac3bb800317eaf9c3f974e1468e4a 100644 --- a/plio/io/tests/test_io_bae.py +++ b/plio/io/tests/test_io_bae.py @@ -1,4 +1,4 @@ -import json +'''import json import os import numpy as np @@ -244,3 +244,4 @@ B 1.0e-01 2.000000e+00 3.00000000000000e+00""" assert len(data['B']) == 3 assert data['B'] == [0.1, 2, 3] +''' \ No newline at end of file diff --git a/plio/io/tests/test_isis_serial_numbers.py b/plio/io/tests/test_isis_serial_numbers.py index 2cd68907e17432dc2a72f9a315102a51e025b76d..172bdf21f974ad36ee762001438139339b6ba688 100644 --- a/plio/io/tests/test_isis_serial_numbers.py +++ b/plio/io/tests/test_isis_serial_numbers.py @@ -7,16 +7,12 @@ from plio.io import isis_serial_number from plio.examples import get_path @pytest.fixture -def apollo_lbl(): - return get_path('Test_PVL.lbl') +def label(request): + return get_path(request.param) -@pytest.fixture -def ctx_lbl(): - return get_path('ctx.pvl') - -@pytest.mark.parametrize("label, expected", [(apollo_lbl(), 'APOLLO15/METRIC/1971-07-31T14:02:27.179'), - (ctx_lbl(),'MRO/CTX/0906095311:038') - ]) +@pytest.mark.parametrize("label, expected", [('Test_PVL.lbl', 'APOLLO15/METRIC/1971-07-31T14:02:27.179'), + ('ctx.pvl','MRO/CTX/0906095311:038') + ], indirect=['label']) def test_generate_serial_number(label, expected): serial = isis_serial_number.generate_serial_number(label) assert serial == expected