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

13 statements  

« prev     ^ index     » next       coverage.py v7.9.2, created at 2025-07-14 00:55 +0000

1# 

2# Copyright (c) Microsoft Corporation. 

3# Licensed under the MIT License. 

4# 

5"""Export test fixtures for mlos_bench storage.""" 

6 

7import mlos_bench.tests.storage.sql.fixtures as sql_storage_fixtures 

8 

9# NOTE: For future storage implementation additions, we can refactor this to use 

10# lazy_fixture and parameterize the tests across fixtures but keep the test code the 

11# same. 

12 

13# Expose some of those as local names so they can be picked up as fixtures by pytest. 

14mysql_storage_info = sql_storage_fixtures.mysql_storage_info 

15mysql_storage = sql_storage_fixtures.mysql_storage 

16postgres_storage_info = sql_storage_fixtures.postgres_storage_info 

17postgres_storage = sql_storage_fixtures.postgres_storage 

18sqlite_storage = sql_storage_fixtures.sqlite_storage 

19storage = sql_storage_fixtures.storage 

20exp_storage = sql_storage_fixtures.exp_storage 

21exp_no_tunables_storage = sql_storage_fixtures.exp_no_tunables_storage 

22mixed_numerics_exp_storage = sql_storage_fixtures.mixed_numerics_exp_storage 

23exp_data = sql_storage_fixtures.exp_data 

24exp_no_tunables_data = sql_storage_fixtures.exp_no_tunables_data 

25mixed_numerics_exp_data = sql_storage_fixtures.mixed_numerics_exp_data