Differences From Artifact [c33ef4a2ee]:

To Artifact [71ee86d231]:


1
2
3
4
5

6
7
8
9
10
11
12
13
14
15
16
17
18
19
20



# type: test
# title: config edge cases
# description: some less stable options
# config:
#   { name: nested, value: "{var}", description: "should be able to understand {enclosed} braces" }

# version: 0.1
# 
# Do all the settings!

import pytest
import pluginconf

@pytest.fixture
def config():
    return pluginconf.plugin_meta(fn=__file__)["config"]

def name(config):
    print(config)
    assert config[0]["value"] == "{var}"








|
>
|











<


>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

19
20
21
22
23
# type: test
# title: config edge cases
# description: some less stable options
# config:
#   { name: nested, value: "{var}", description: "should now be able to understand {enclosed} braces" }
#   { name: 'single_quoted', value: 'sq' }
# version: 0.7.8
# 
# Do all the settings!

import pytest
import pluginconf

@pytest.fixture
def config():
    return pluginconf.plugin_meta(fn=__file__)["config"]

def name(config):

    assert config[0]["value"] == "{var}"

def single_quotes(config):
    assert config[1]["value"] == "sq"