Test Failed
Push — develop ( 2f2c0e...2adb06 )
by Dean
02:41
created

Cryptography.test_import()   A

Complexity

Conditions 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 9
rs 9.6666
1
from plugin.core.libraries.tests.core.base import TestBase
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 40))

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
class Cryptography(TestBase):
0 ignored issues
show
Coding Style introduced by
This class has no __init__ method.
Loading history...
5
    name = 'cryptography'
6
    optional = True
7
8
    @staticmethod
9
    def test_import():
10
        import cryptography
0 ignored issues
show
Configuration introduced by
The import cryptography 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...
11
        from cryptography.hazmat.bindings.openssl.binding import Binding
0 ignored issues
show
Configuration introduced by
The import cryptography.hazmat.bindings.openssl.binding 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...
12
13
        return {
14
            'versions': {
15
                'cryptography': getattr(cryptography, '__version__', None),
16
                'openssl': Binding.lib.SSLeay()
17
            }
18
        }
19