2023-05-26 10:17:45 +01:00
|
|
|
from tests import TEST_CONFIG_ROOT
|
|
|
|
|
from tests.conftest import _get_primaite_env_from_config
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_single_action_space():
|
|
|
|
|
"""Test to ensure the blue agent is using the ACL action space and is carrying out both kinds of operations."""
|
|
|
|
|
env = _get_primaite_env_from_config(
|
2023-05-31 14:11:15 +01:00
|
|
|
main_config_path=TEST_CONFIG_ROOT / "single_action_space_main_config.yaml",
|
2023-05-26 10:17:45 +01:00
|
|
|
lay_down_config_path=TEST_CONFIG_ROOT
|
2023-05-31 14:11:15 +01:00
|
|
|
/ "single_action_space_lay_down_config.yaml",
|
2023-05-26 10:17:45 +01:00
|
|
|
)
|
|
|
|
|
print("Average Reward:", env.average_reward)
|