diff --git a/osaca/semantics/hw_model.py b/osaca/semantics/hw_model.py index 4fc107c..f72e5be 100644 --- a/osaca/semantics/hw_model.py +++ b/osaca/semantics/hw_model.py @@ -73,8 +73,8 @@ class MachineModel(object): if self._path in MachineModel._runtime_cache and not lazy: self._data = MachineModel._runtime_cache[self._path] # check if file is cached - # cached = self._get_cached(self._path) if not lazy else False - if False: + cached = self._get_cached(self._path) if not lazy else False + if cached: self._data = cached else: yaml = self._create_yaml_object() diff --git a/tests/test_cli.py b/tests/test_cli.py index 1aa1ed5..47d1623 100755 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -66,7 +66,7 @@ class TestCLI(unittest.TestCase): ] ) osaca.run(args, output_file=output) - ''' + def test_check_db(self): parser = osaca.create_parser(parser=ErrorRaisingArgumentParser()) args = parser.parse_args( @@ -277,7 +277,7 @@ class TestCLI(unittest.TestCase): output = StringIO() osaca.run(a, output_file=output) self.assertEqual(output.getvalue().split("\n")[8:], output_base) - ''' + ################## # Helper functions ##################