Coverage for tests/conftest.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.4.3, created at 2024-04-21 11:16 +0000

1"""Pytest test configuration file.""" 

2 

3import os 

4 

5## Plugin Register ##################################################################################################### 

6pytest_plugins = [ 

7 ## Third Party Plugins ############################################################################################# 

8 ## Project Plugins ################################################################################################# 

9 "tests.fixtures", 

10] 

11 

12 

13def env_plots() -> bool: 

14 """Determines whether plots are enabled or not in the tests from an environment variable of name 

15 ``ENABLE_PLOTS``. 

16 

17 :return: ``True`` if plots are enabled, ``False`` if plots are disabled.""" 

18 return os.environ.get("ENABLE_PLOTS") is not None