src.plangym.api_tests#

Classes#

TestPlanEnv

TestPlangymEnv

TestVideogameEnv

Test the VideogameEnv class.

Functions#

generate_test_cases(names, env_class[, ...])

batch_size()

display()

step_tuple_test(env, obs, reward, terminal, info[, dt])

step_batch_tuple_test(env, batch_size, observs, ...)

Module Contents#

src.plangym.api_tests.generate_test_cases(names, env_class, n_workers_values=None, render_modes=None, obs_types=None, custom_tests=None)[source]#
Return type:

plangym.core.PlangymEnv

src.plangym.api_tests.batch_size()[source]#
Return type:

int

src.plangym.api_tests.display()[source]#
src.plangym.api_tests.step_tuple_test(env, obs, reward, terminal, info, dt=None)[source]#
src.plangym.api_tests.step_batch_tuple_test(env, batch_size, observs, rewards, terminals, infos, dt)[source]#
class src.plangym.api_tests.TestPlanEnv[source]#
CLASS_ATTRIBUTES = ('OBS_IS_ARRAY', 'STATE_IS_ARRAY', 'SINGLETON')#
PROPERTIES = ('unwrapped', 'obs_shape', 'action_shape', 'name', 'frameskip', 'autoreset', 'delay_setup',...#
test_init(env)[source]#
test_repr(env)[source]#
test_class_attributes(env)[source]#
test_has_properties(env)[source]#
test_name(env)[source]#
test_obs_shape(env)[source]#
test_img_shape(env)[source]#
test_action_shape(env)[source]#
test_unwrapped(env)[source]#
test_return_image(env, return_image)[source]#
test_sample_action(env)[source]#
test_get_state(env)[source]#
test_set_state(env)[source]#
test_reset(env)[source]#
test_step(env, state, return_state, dt=1)[source]#
test_step_batch(env, states, return_state, batch_size)[source]#
test_step_dt_values(env, dt=3, return_state=None)[source]#
test_step_batch_dt_values(env, dt, batch_size, states=None, return_state=None)[source]#
test_clone_and_close(env, delay_setup)[source]#
test_get_image(env)[source]#
class src.plangym.api_tests.TestPlangymEnv[source]#
CLASS_ATTRIBUTES = ('AVAILABLE_OBS_TYPES', 'DEFAULT_OBS_TYPE')#
PROPERTIES = ('gym_env', 'obs_shape', 'obs_type', 'observation_space', 'action_shape', 'action_space',...#
test_class_attributes(env)[source]#
test_has_properties(env)[source]#
test_obs_type(env)[source]#
test_obvervation_space(env)[source]#
test_action_space(env)[source]#
test_gym_env(env)[source]#
test_reward_range(env)[source]#
test_delay_setup(env, delay_setup)[source]#
test_has_metadata(env)[source]#
test_render_mode(env)[source]#
test_remove_time_limit(env)[source]#
test_seed(env)[source]#
test_terminal(env)[source]#
test_render(env, display)[source]#
test_wrap_environment(env)[source]#
class src.plangym.api_tests.TestVideogameEnv[source]#

Test the VideogameEnv class.

test_ram(env)[source]#

Test the ram property.