Skip to content

Commit 6ba101e

Browse files
volodymyrssbsipocz
authored andcommitted
trying to compress formatting
1 parent e18db8a commit 6ba101e

File tree

1 file changed

+13
-32
lines changed

1 file changed

+13
-32
lines changed

astroquery/heasarc/tests/parametrization.py

Lines changed: 13 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -94,35 +94,16 @@ def have_mock_data():
9494

9595

9696
parametrization_local_save_remote = pytest.mark.parametrize(
97-
"patch_get",
98-
[
99-
pytest.param(
100-
"local",
101-
marks=pytest.mark.skipif(
102-
not have_mock_data(),
103-
reason="No test data found. If remote_data is allowed, we'll generate some.",
104-
),
105-
),
106-
pytest.param(
107-
"save",
108-
marks=[
109-
pytest.mark.remote_data,
110-
pytest.mark.skipif(
111-
have_mock_data(),
112-
reason="found some test data: please delete them to save again.",
113-
),
114-
],
115-
),
116-
pytest.param(
117-
"remote",
118-
marks=[
119-
pytest.mark.remote_data,
120-
pytest.mark.skipif(
121-
not have_mock_data(),
122-
reason="No test data found, [save] will run remote tests and save data.",
123-
),
124-
],
125-
),
126-
],
127-
indirect=True,
128-
)
97+
"patch_get", [
98+
pytest.param("local", marks=[
99+
pytest.mark.skipif(not have_mock_data(),
100+
reason="No test data found. If remote_data is allowed, we'll generate some.")]),
101+
pytest.param("save", marks=[
102+
pytest.mark.remote_data,
103+
pytest.mark.skipif(have_mock_data(),
104+
reason="found some test data: please delete them to save again.")]),
105+
pytest.param("remote", marks=[
106+
pytest.mark.remote_data,
107+
pytest.mark.skipif(not have_mock_data(),
108+
reason="No test data found, [save] will run remote tests and save data.")])],
109+
indirect=True)

0 commit comments

Comments
 (0)