Coverage for mlos_bench/mlos_bench/tests/storage/exp_context_test.py: 100%

3 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-10-07 01:52 +0000

1# 

2# Copyright (c) Microsoft Corporation. 

3# Licensed under the MIT License. 

4# 

5"""Unit tests for the storage subsystem.""" 

6 

7from mlos_bench.storage.base_storage import Storage 

8 

9 

10def test_exp_context(exp_storage: Storage.Experiment) -> None: 

11 """Try to retrieve old experimental data from the empty storage.""" 

12 # pylint: disable=protected-access 

13 assert exp_storage._in_context