Skip to content
Snippets Groups Projects

Fix broken tests after reset

Merged Johannes Kung requested to merge fix_reset into main
2 files
+ 9
5
Compare changes
  • Side-by-side
  • Inline
Files
2
 
from simudator.core.module import Module
from simudator.core.processor import Processor
from simudator.core.processor import Processor
TEST_PATH = "test/test_core/processor_state_test.txt"
TEST_PATH = "test/test_core/processor_state_test.txt"
class Dummymodule:
class Dummymodule(Module):
def __init__(self, name):
def __init__(self, name):
self.name = name
self.name = name
self.string = None
self.string = None
def load_from_str(self, string):
def load_from_str(self, state_string):
self.string = string
self.string = state_string
def get_string(self):
def get_string(self):
return self.string
return self.string
 
def reset(self):
 
self.string = ""
 
def test_load_from_file():
def test_load_from_file():
cpu = Processor()
cpu = Processor()
Loading