GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Branch 13-set-up-scrutinizer (8eece6)
by Yngve
01:57
created

PaymentCardTextTest.test_clean()   A

Complexity

Conditions 2

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 7
nop 1
dl 0
loc 9
rs 10
c 0
b 0
f 0
1
# pyre-strict
0 ignored issues
show
Coding Style introduced by
This module should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
2
3
import unittest
4
5
from tests.examples import TEXTS
6
from payment_card_text import PaymentCardText
7
8
9
class PaymentCardTextTest(unittest.TestCase):
1 ignored issue
show
Coding Style introduced by
This class should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
Unused Code introduced by
The variable __class__ seems to be unused.
Loading history...
10
    def test_clean(self) -> None:
1 ignored issue
show
Coding Style introduced by
This method should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
Coding Style introduced by
Found indentation with spaces instead of tabs
Loading history...
11
        for example_text in TEXTS:
1 ignored issue
show
Coding Style introduced by
Found indentation with spaces instead of tabs
Loading history...
12
            text = PaymentCardText(example_text['input'])
1 ignored issue
show
Coding Style introduced by
Found indentation with spaces instead of tabs
Loading history...
13
14
            text.clean()
1 ignored issue
show
Coding Style introduced by
Found indentation with spaces instead of tabs
Loading history...
15
16
            self.assertEqual(
1 ignored issue
show
Coding Style introduced by
Found indentation with spaces instead of tabs
Loading history...
17
                str(text),
18
                example_text['expected_output'],
19
            )
20
21
22
if __name__ == '__main__':
23
    unittest.main()
1 ignored issue
show
Coding Style introduced by
Found indentation with spaces instead of tabs
Loading history...
24