def testRewardCheckerBatchSizeOne(self):
    obs_spec = array_spec.BoundedArraySpec((2, 3), np.int32, (- 10), 10)
    env = random_py_environment.RandomPyEnvironment(obs_spec, reward_fn=(lambda *_: np.array([1.0])), batch_size=1)
    env._done = False
    env.reset()
    time_step = env.step([0])
    self.assertEqual(time_step.reward, 1.0)
def testRewardCheckerBatchSizeOne(self):
    obs_spec = array_spec.BoundedArraySpec((2, 3), np.int32, (- 10), 10)
    env = random_py_environment.RandomPyEnvironment(obs_spec, reward_fn=(lambda *_: np.array([1.0])), batch_size=1)
    env._done = False
    env.reset()
    time_step = env.step([0])
    self.assertEqual(time_step.reward, 1.0)