Completed
Pull Request — develop (#5)
by Jace
02:26
created

temporary_directory()   A

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
# pylint: disable=unused-variable,expression-not-assigned
2
3
import pytest
4
from expecter import expect
0 ignored issues
show
Configuration introduced by
The import expecter could not be resolved.

This can be caused by one of the following:

1. Missing Dependencies

This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.

# .scrutinizer.yml
before_commands:
    - sudo pip install abc # Python2
    - sudo pip3 install abc # Python3
Tip: We are currently not using virtualenv to run pylint, when installing your modules make sure to use the command for the correct version.

2. Missing __init__.py files

This error could also result from missing __init__.py files in your module folders. Make sure that you place one file in each sub-folder.

Loading history...
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