Test refactoring (#2427)

* Move tests to root with automatic PyCharm import refactoring. This will likely fail some tests

* Changed entry point for a registration test env.

* Move a stray lunar_lander test to tests/envs/...

* black

* Change the version from which importlib_metadata is replaced with importlib.metadata. Also requiring installing importlib_metadata for python 3.8 now.

???????????

* Undo last commit
This commit is contained in:
Ariel Kwiatkowski
2021-09-29 01:53:30 +02:00
committed by GitHub
parent ca42b05243
commit 947b857bd4
56 changed files with 21 additions and 17 deletions

View File

@@ -4,8 +4,8 @@ import os
import sys
import argparse
from gym.tests.envs.spec_list import should_skip_env_spec_for_tests
from gym.tests import generate_rollout_hash
from tests.envs.spec_list import should_skip_env_spec_for_tests
from tests import generate_rollout_hash
DATA_DIR = os.path.join(os.path.dirname(__file__), os.pardir, "gym", "envs", "tests")
ROLLOUT_STEPS = 100