Coverage for tests/test_config.py: 50%
8 statements
« prev ^ index » next coverage.py v6.5.0, created at 2023-01-18 10:13 +0000
« prev ^ index » next coverage.py v6.5.0, created at 2023-01-18 10:13 +0000
1import pytest
2from lsst.daf.butler import Config
5@pytest.mark.skip(reason="parsl not in LSST environment")
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 from lsst.ctrl.bps import BpsConfig
12 from lsst.ctrl.bps.parsl.configuration import get_bps_config_value
14 config = BpsConfig(Config.fromString("foo: bar")) # BpsConfig doesn't work directly with fromString
15 assert get_bps_config_value(config, "foo", str) == "bar"