Conditions | 3 |
Total Lines | 10 |
Code Lines | 10 |
Lines | 10 |
Ratio | 100 % |
Changes | 0 |
1 | import os |
||
14 | View Code Duplication | def test_envtpl(): |
|
|
|||
15 | if "ENV_VAR" in os.environ: |
||
16 | del os.environ["ENV_VAR"] |
||
17 | x = OpinionatedConfigParser(use_envtpl=True) |
||
18 | x.read_dict(TEST_DICT1) |
||
19 | try: |
||
20 | render_string("foo") |
||
21 | except Exception: |
||
22 | pytest.skip("envtpl support missing => skipping") |
||
23 | assert x.get("section1", "key1") == "value1" |
||
24 | |||
36 |