Skip to content

Commit

Permalink
Solves deprecation warning from pytest_cases related to `pytest_fix…
Browse files Browse the repository at this point in the history
…ture_plus`.

For more information see:
pytest-dev/pytest#6475.
  • Loading branch information
uhlajs committed Sep 20, 2020
1 parent 9090a12 commit e883c11
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions tests/envs/test_checkers.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import gym
import pytest
import ma_gym
from pytest_cases import pytest_parametrize_plus, fixture_ref
from pytest_cases import parametrize_plus, fixture_ref

@pytest.fixture(scope='module')
def env():
Expand Down Expand Up @@ -83,7 +83,7 @@ def test_reset_after_episode_end(env):
assert env._total_episode_reward == ep_reward
test_reset(env)

@pytest_parametrize_plus('env',
@parametrize_plus('env',
[fixture_ref(env),
fixture_ref(env_full)])
def test_observation_space(env):
Expand Down
4 changes: 2 additions & 2 deletions tests/envs/test_combat.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import gym
import pytest
import ma_gym
from pytest_cases import pytest_parametrize_plus, fixture_ref
from pytest_cases import parametrize_plus, fixture_ref


@pytest.fixture(scope='module')
Expand Down Expand Up @@ -38,7 +38,7 @@ def test_reset_after_episode_end(env):
test_reset(env)


@pytest_parametrize_plus('env',
@parametrize_plus('env',
[fixture_ref(env)])
def test_observation_space(env):
obs = env.reset()
Expand Down
4 changes: 2 additions & 2 deletions tests/envs/test_predatorprey5x5.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import gym
import pytest
import ma_gym
from pytest_cases import pytest_parametrize_plus, fixture_ref
from pytest_cases import parametrize_plus, fixture_ref


@pytest.fixture(scope='module')
Expand Down Expand Up @@ -54,7 +54,7 @@ def test_reset_after_episode_end(env):
test_reset(env)


@pytest_parametrize_plus('env',
@parametrize_plus('env',
[fixture_ref(env),
fixture_ref(env_full)])
def test_observation_space(env):
Expand Down
4 changes: 2 additions & 2 deletions tests/envs/test_predatorprey7x7.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import gym
import pytest
import ma_gym
from pytest_cases import pytest_parametrize_plus, fixture_ref
from pytest_cases import parametrize_plus, fixture_ref


@pytest.fixture(scope='module')
Expand Down Expand Up @@ -44,7 +44,7 @@ def test_reset_after_episode_end(env):
test_reset(env)


@pytest_parametrize_plus('env',
@parametrize_plus('env',
[fixture_ref(env),
fixture_ref(env_full)])
def test_observation_space(env):
Expand Down
4 changes: 2 additions & 2 deletions tests/envs/test_switch2.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import gym
import pytest
import ma_gym
from pytest_cases import pytest_parametrize_plus, fixture_ref
from pytest_cases import parametrize_plus, fixture_ref

@pytest.fixture(scope='module')
def env():
Expand Down Expand Up @@ -75,7 +75,7 @@ def test_reset_after_episode_end(env):
test_reset(env)


@pytest_parametrize_plus('env',
@parametrize_plus('env',
[fixture_ref(env),
fixture_ref(env_full)])
def test_observation_space(env):
Expand Down

0 comments on commit e883c11

Please sign in to comment.