mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-01 22:11:25 +00:00
17 lines
486 B
Python
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
|
|
)
|