Completed
Push — develop ( 1a3486...f04b4e )
by Jace
08:51
created

describe_config()   A

Complexity

Conditions 4

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 4
dl 0
loc 13
rs 9.2
c 1
b 0
f 0
1
# pylint: disable=unused-variable,expression-not-assigned
2
3
import pytest
4
from expecter import expect
5
6
from osmerge.models import Config
7
8
9
def describe_config():
10
11
    @pytest.fixture(autouse=True)
12
    def temporary_directory(tmpdir):
13
        tmpdir.chdir()
14
15
    def describe_generate_example():
16
17
        def it_includes_boundaries_and_filters():
18
            config = Config.generate_example()
19
20
            expect(len(config.boundaries)) == 1
21
            expect(len(config.filters.tags)) == 1
22