Coverage for tests/test_config.py: 67%
6 statements
« prev ^ index » next coverage.py v7.2.7, created at 2023-08-10 07:58 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2023-08-10 07:58 +0000
1from lsst.ctrl.bps import BpsConfig
2from lsst.ctrl.bps.parsl.configuration import get_bps_config_value
3from lsst.daf.butler import Config
6def test_config():
7 """Super-basic test of configuration reading
9 This is intended as a test of testing more than anything else.
10 """
11 config = BpsConfig(Config.fromString("foo: bar")) # BpsConfig doesn't work directly with fromString
12 assert get_bps_config_value(config, "foo", str) == "bar"