Skip to content

Commit

Permalink
Fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
RedTachyon committed Jul 7, 2023
1 parent 29cdbfa commit 551fa7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/algorithms/test_sqil.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import stable_baselines3.common.vec_env as vec_env
import stable_baselines3.dqn as dqn
from stable_baselines3 import ppo
from stable_baselines3.common import policies
from stable_baselines3.common.evaluation import evaluate_policy

from imitation.algorithms import base as algo_base
Expand Down Expand Up @@ -38,6 +39,8 @@ def test_sqil_demonstration_buffer(rng):
policy=policy,
)

assert isinstance(model.policy, policies.BasePolicy)

assert isinstance(model.dqn.replay_buffer, sqil.SQILReplayBuffer)
expert_buffer = model.dqn.replay_buffer.expert_buffer

Expand Down

0 comments on commit 551fa7e

Please sign in to comment.