Issues (118)

tests/conftest.py (1 issue)

1
"""Integration tests configuration."""
2
# pylint: disable=unused-argument
3
4
import os
5
6
import yorm
0 ignored issues
show
The import yorm 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...
7
8
from gdm.test.conftest import pytest_configure  # pylint: disable=unused-import
9
10
11
# TODO: delete if unused (and files)
12
ROOT = os.path.dirname(__file__)
13
FILES = os.path.join(ROOT, 'files')
14
15
16
def pytest_runtest_setup(item):
17
    """Ensure files are created for integration tests."""
18
    yorm.settings.fake = False
19