Passed
Push — master ( 694e2f...150a8e )
by Dean
09:10 queued 06:18
created

Apsw.test_import()   A

Complexity

Conditions 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1.2963

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 1
cts 3
cp 0.3333
rs 9.4285
c 0
b 0
f 0
cc 1
crap 1.2963
1 1
from plugin.core.libraries.tests.core.base import BaseTest
0 ignored issues
show
Bug introduced by
The name base does not seem to exist in module plugin.core.libraries.tests.core.
Loading history...
Configuration introduced by
Unable to import 'plugin.core.libraries.tests.core.base' (invalid syntax (<string>, line 52))

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...
2
3
4 1
class Apsw(BaseTest):
0 ignored issues
show
Coding Style introduced by
This class has no __init__ method.
Loading history...
5 1
    name = 'apsw'
6
7 1
    @staticmethod
8
    def test_import():
9
        import apsw
0 ignored issues
show
Configuration introduced by
The import apsw 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...
10
11
        return {
12
            'versions': {
13
                'apsw': apsw.apswversion(),
14
                'sqlite': apsw.SQLITE_VERSION_NUMBER
15
            }
16
        }
17