From cee377a91ba763cb387d7c651bbd40980f9240ac Mon Sep 17 00:00:00 2001 From: Tom Donoghue Date: Mon, 28 Nov 2022 22:44:13 -0500 Subject: [PATCH] py.test -> pytest --- fooof/tests/bands/test_bands.py | 2 +- fooof/tests/core/test_funcs.py | 2 +- fooof/tests/core/test_utils.py | 2 +- fooof/tests/objs/test_fit.py | 2 +- fooof/tests/objs/test_utils.py | 2 +- fooof/tests/plts/test_fg.py | 2 +- fooof/tests/sim/test_params.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/fooof/tests/bands/test_bands.py b/fooof/tests/bands/test_bands.py index 7741213af..0b308b0a7 100644 --- a/fooof/tests/bands/test_bands.py +++ b/fooof/tests/bands/test_bands.py @@ -1,6 +1,6 @@ """Test functions for fooof.data.bands.""" -from py.test import raises +from pytest import raises from fooof.bands.bands import * diff --git a/fooof/tests/core/test_funcs.py b/fooof/tests/core/test_funcs.py index f9e05dcb9..4a64503b4 100644 --- a/fooof/tests/core/test_funcs.py +++ b/fooof/tests/core/test_funcs.py @@ -1,6 +1,6 @@ """Tests for fooof.core.funcs.""" -from py.test import raises +from pytest import raises import numpy as np from scipy.stats import norm, linregress diff --git a/fooof/tests/core/test_utils.py b/fooof/tests/core/test_utils.py index 690b492b2..2dbce06d1 100644 --- a/fooof/tests/core/test_utils.py +++ b/fooof/tests/core/test_utils.py @@ -5,7 +5,7 @@ from numpy import array_equal -from py.test import raises +from pytest import raises from fooof.core.utils import * diff --git a/fooof/tests/objs/test_fit.py b/fooof/tests/objs/test_fit.py index 87907d11a..b568ceca8 100644 --- a/fooof/tests/objs/test_fit.py +++ b/fooof/tests/objs/test_fit.py @@ -7,7 +7,7 @@ """ import numpy as np -from py.test import raises +from pytest import raises from fooof.core.items import OBJ_DESC from fooof.core.errors import FitError diff --git a/fooof/tests/objs/test_utils.py b/fooof/tests/objs/test_utils.py index 6f9479141..b496c1bc9 100644 --- a/fooof/tests/objs/test_utils.py +++ b/fooof/tests/objs/test_utils.py @@ -1,6 +1,6 @@ """Test functions for fooof.objs.utils.""" -from py.test import raises +from pytest import raises import numpy as np diff --git a/fooof/tests/plts/test_fg.py b/fooof/tests/plts/test_fg.py index 24103a916..bde3a318d 100644 --- a/fooof/tests/plts/test_fg.py +++ b/fooof/tests/plts/test_fg.py @@ -1,6 +1,6 @@ """Tests for fooof.plts.fg.""" -from py.test import raises +from pytest import raises from fooof import FOOOFGroup from fooof.core.errors import NoModelError diff --git a/fooof/tests/sim/test_params.py b/fooof/tests/sim/test_params.py index 983e13c70..c8ccb6ff6 100644 --- a/fooof/tests/sim/test_params.py +++ b/fooof/tests/sim/test_params.py @@ -1,6 +1,6 @@ """Test functions for fooof.sim.params.""" -from py.test import raises +from pytest import raises from numpy import array_equal