Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhoeller19 committed Jun 2, 2024
1 parent 800042b commit 811abce
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"""Rest everything follows."""

import gymnasium as gym
import random
import torch
import unittest

Expand All @@ -42,8 +41,7 @@ def setUpClass(cls):
cls.registered_tasks.append(task_spec.id)
# sort environments by name
cls.registered_tasks.sort()
# pick four environments randomly to test
cls.registered_tasks = random.sample(cls.registered_tasks, 4)
cls.registered_tasks = cls.registered_tasks[:4]
# print all existing task names
print(">>> All registered environments:", cls.registered_tasks)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"""Rest everything follows."""

import gymnasium as gym
import random
import torch
import unittest

Expand All @@ -42,8 +41,7 @@ def setUpClass(cls):
cls.registered_tasks.append(task_spec.id)
# sort environments by name
cls.registered_tasks.sort()
# pick four environments randomly to test
cls.registered_tasks = random.sample(cls.registered_tasks, 4)
cls.registered_tasks = cls.registered_tasks[:4]
# print all existing task names
print(">>> All registered environments:", cls.registered_tasks)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import gymnasium as gym
import numpy as np
import random
import torch
import unittest

Expand All @@ -43,8 +42,7 @@ def setUpClass(cls):
cls.registered_tasks.append(task_spec.id)
# sort environments by name
cls.registered_tasks.sort()
# pick four environments randomly to test
cls.registered_tasks = random.sample(cls.registered_tasks, 4)
cls.registered_tasks = cls.registered_tasks[:4]
# print all existing task names
print(">>> All registered environments:", cls.registered_tasks)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"""Rest everything follows."""

import gymnasium as gym
import random
import torch
import unittest

Expand All @@ -42,8 +41,7 @@ def setUpClass(cls):
cls.registered_tasks.append(task_spec.id)
# sort environments by name
cls.registered_tasks.sort()
# pick four environments randomly to test
cls.registered_tasks = random.sample(cls.registered_tasks, 4)
cls.registered_tasks = cls.registered_tasks[:4]
# print all existing task names
print(">>> All registered environments:", cls.registered_tasks)

Expand Down

0 comments on commit 811abce

Please sign in to comment.