Loading astrort/testing/conftest.py +4 −0 Original line number Original line Diff line number Diff line Loading @@ -19,3 +19,7 @@ def test_conf_file(): def test_tmp_folder(): def test_tmp_folder(): makedirs(join(dirname(abspath(astrort.__file__)), 'testing', 'tmp'), exist_ok=True) makedirs(join(dirname(abspath(astrort.__file__)), 'testing', 'tmp'), exist_ok=True) return join(dirname(abspath(astrort.__file__)), 'testing', 'tmp') return join(dirname(abspath(astrort.__file__)), 'testing', 'tmp') @pytest.fixture(scope='function') def test_data_folder(): return join(dirname(abspath(astrort.__file__)), 'testing', 'data') No newline at end of file astrort/testing/pytest.ini +2 −1 Original line number Original line Diff line number Diff line Loading @@ -2,3 +2,4 @@ markers = markers = test_conf_file: test configurtion file test_conf_file: test configurtion file test_tmp_folder: test tmp output folder test_tmp_folder: test tmp output folder test_data_folder: test data input folder No newline at end of file Loading
astrort/testing/conftest.py +4 −0 Original line number Original line Diff line number Diff line Loading @@ -19,3 +19,7 @@ def test_conf_file(): def test_tmp_folder(): def test_tmp_folder(): makedirs(join(dirname(abspath(astrort.__file__)), 'testing', 'tmp'), exist_ok=True) makedirs(join(dirname(abspath(astrort.__file__)), 'testing', 'tmp'), exist_ok=True) return join(dirname(abspath(astrort.__file__)), 'testing', 'tmp') return join(dirname(abspath(astrort.__file__)), 'testing', 'tmp') @pytest.fixture(scope='function') def test_data_folder(): return join(dirname(abspath(astrort.__file__)), 'testing', 'data') No newline at end of file
astrort/testing/pytest.ini +2 −1 Original line number Original line Diff line number Diff line Loading @@ -2,3 +2,4 @@ markers = markers = test_conf_file: test configurtion file test_conf_file: test configurtion file test_tmp_folder: test tmp output folder test_tmp_folder: test tmp output folder test_data_folder: test data input folder No newline at end of file