Fix test for running in parallel
@@ -227,8 +227,6 @@ def test_background_model_io(tmpdir, background):
assert bkg_read.filename == filename
-class TestSkyModels:
- @staticmethod
def test_parameters(sky_models):
parnames = [
"index",
@@ -247,12 +245,10 @@ class TestSkyModels:
p2 = sky_models[0].parameters["lon_0"]
assert p1 is p2
- @staticmethod
def test_str(sky_models):
assert "Component 0" in str(sky_models)
assert "Component 1" in str(sky_models)
- @staticmethod
def test_get_item(sky_models):
model = sky_models["source-2"]
assert model.name == "source-2"
@@ -263,7 +259,6 @@ class TestSkyModels:
with pytest.raises(ValueError):
sky_models["spam"]
- @staticmethod
def test_names(sky_models):
assert sky_models.names == ["source-2", "source-3"]
