Files
Gymnasium/gym/scoreboard/client/tests/test_evaluation.py
2016-04-27 08:00:58 -07:00

17 lines
486 B
Python

from gym.scoreboard.client.tests import helper
from gym import scoreboard
class EvaluationTest(helper.APITestCase):
def test_create_evaluation(self):
self.mock_response(helper.TestData.evaluation_response())
evaluation = scoreboard.Evaluation.create()
assert isinstance(evaluation, scoreboard.Evaluation)
self.requestor_mock.request.assert_called_with(
'post',
'/v1/evaluations',
{},
None
)