mirror of
https://github.com/vale981/ray
synced 2025-03-05 10:01:43 -05:00
16 lines
362 B
Python
16 lines
362 B
Python
import unittest
|
|
|
|
from ray.rllib.algorithms.registry import POLICIES, get_policy_class
|
|
|
|
|
|
class TestPolicies(unittest.TestCase):
|
|
def test_load_policies(self):
|
|
for name in POLICIES.keys():
|
|
self.assertIsNotNone(get_policy_class(name))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
import pytest
|
|
import sys
|
|
|
|
sys.exit(pytest.main(["-v", __file__]))
|