Remove pytest class in test pixel observation wrapper (#2902)

This commit is contained in:
Mark Towers
2022-06-19 22:05:56 +01:00
committed by GitHub
parent 979407f4c4
commit feea527a4f

View File

@@ -48,9 +48,8 @@ class FakeDictObservationEnvironment(FakeEnvironment):
super().__init__(*args, **kwargs)
class TestPixelObservationWrapper(gym.Wrapper):
@pytest.mark.parametrize("pixels_only", (True, False))
def test_dict_observation(self, pixels_only):
@pytest.mark.parametrize("pixels_only", (True, False))
def test_dict_observation(pixels_only):
pixel_key = "rgb"
env = FakeDictObservationEnvironment()
@@ -89,8 +88,9 @@ class TestPixelObservationWrapper(gym.Wrapper):
assert rgb_observation.shape == (height, width, 3)
assert rgb_observation.dtype == np.uint8
@pytest.mark.parametrize("pixels_only", (True, False))
def test_single_array_observation(self, pixels_only):
@pytest.mark.parametrize("pixels_only", (True, False))
def test_single_array_observation(pixels_only):
pixel_key = "depth"
env = FakeArrayObservationEnvironment()