Skip to content

Commit 71e3160

Browse files
committed
Fix test for test_process_cache
1 parent 8d1569d commit 71e3160

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

test/test_util_functions.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,12 @@ def verify2(answer, result_host, atol):
672672
assert v(1, 2, atol=3)
673673

674674

675+
class MockRunner:
676+
simulation_mode = False
677+
678+
def get_device_info(self):
679+
return Options(name="test_device")
680+
675681
def test_process_cache():
676682
def assert_open_cachefile_is_correctly_parsed(cache):
677683
with open(cache, "r") as cachefile:
@@ -694,7 +700,7 @@ def assert_open_cachefile_is_correctly_parsed(cache):
694700
simulation_mode=False,
695701
objective="time",
696702
)
697-
runner = Options(dev=Options(name="test_device"), simulation_mode=False)
703+
runner = MockRunner()
698704

699705
try:
700706
# call process_cache without pre-existing cache

0 commit comments

Comments
 (0)