Skip to content

Commit

Permalink
use setup fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlittle committed Mar 19, 2024
1 parent 3deb01a commit eb21150
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ def test_op_strict_different_none(self, mocker):


class Test___lt__:
def setup_method(self):
@pytest.fixture(autouse=True)
def _setup(self):
self.cls = AncillaryVariableMetadata
self.one = self.cls(1, 1, 1, 1, 1)
self.two = self.cls(1, 1, 1, 2, 1)
Expand Down Expand Up @@ -424,7 +425,8 @@ def test_op_strict_different_none(self, mocker):


class Test_equal:
def setup_method(self):
@pytest.fixture(autouse=True)
def _setup(self):
self.cls = AncillaryVariableMetadata
self.none = self.cls(*(None,) * len(self.cls._fields))

Expand Down

0 comments on commit eb21150

Please sign in to comment.