Test retrieving stored variables.
(self, cache)
| 50 | assert var.units == "units/day" |
| 51 | |
| 52 | def test_get_variable(self, cache): |
| 53 | """Test retrieving stored variables.""" |
| 54 | cache.store_variable("sigma", 5.5) |
| 55 | var = cache.get_variable("sigma") |
| 56 | assert var is not None |
| 57 | assert var.value == 5.5 |
| 58 | |
| 59 | def test_get_variable_missing(self, cache): |
| 60 | """Test getting non-existent variable returns None.""" |
nothing calls this directly
no outgoing calls
no test coverage detected