Coverage for tests/test_config.py: 50%

8 statements  

« prev     ^ index     » next       coverage.py v7.2.5, created at 2023-05-18 02:24 -0700

1import pytest 

2from lsst.daf.butler import Config 

3 

4 

5@pytest.mark.skip(reason="parsl not in LSST environment") 

6def test_config(): 

7 """Super-basic test of configuration reading 

8 

9 This is intended as a test of testing more than anything else. 

10 """ 

11 from lsst.ctrl.bps import BpsConfig 

12 from lsst.ctrl.bps.parsl.configuration import get_bps_config_value 

13 

14 config = BpsConfig(Config.fromString("foo: bar")) # BpsConfig doesn't work directly with fromString 

15 assert get_bps_config_value(config, "foo", str) == "bar"