Coverage for tests/test_config.py: 50%

8 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2023-06-09 10:20 +0000

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"