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.
Failed Conditions
Pull Request — master (#17)
by Yngve
03:33
created

tests/examples.py (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
# pyre-strict
0 ignored issues
show
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
from typing import List, Dict
3
4
TEXTS: List[Dict[str, str]] = [
5
    {
6
        'input': '',
7
        'expected_output': '',
8
    },
9
    {
10
        'input': 'COINBASE UK, LTD                   EUR              15,94',
11
        'expected_output': 'COINBASE UK, LTD',
12
    },
13
    {
14
        'input': 'COINBASE UK, LTD                   EUR              182,12',
15
        'expected_output': 'COINBASE UK, LTD',
16
    },
17
    {
18
        'input': 'Fra: Solan Gundersen 18.06.18',
19
        'expected_output': 'Fra: Solan Gundersen',
20
    },
21
    {
22
        'input': '*4274 25.06 NOK 4101.00 WWW.TICKET.NO Kurs: 1.0000',
23
        'expected_output': 'WWW.TICKET.NO',
24
    },
25
    {
26
        'input': 'OBOS FACTORING',
27
        'expected_output': 'OBOS FACTORING',
28
    },
29
    {
30
        'input': '30.06 COOP PRIX VG-HU AKERSGT 55 OSLO',
31
        'expected_output': 'COOP PRIX VG-HU AKERSGT 55 OSLO',
32
    },
33
    {
34
        'input': '*8877 01.07 USD 12.99 IRRADIATED SOFTWARE Kurs: 8.3718',
35
        'expected_output': 'IRRADIATED SOFTWARE',
36
    },
37
    {
38
        'input': '*3951 01.07 EUR 4.00 GOOGLE *SVCSAPPS_hoise Kurs: 9.7250',
39
        'expected_output': 'GOOGLE *SVCSAPPS_hoise',
40
    },
41
    {
42
        'input': '*9090 29.06 USD 1.00 SAM HARRIS MEDIA INC Kurs: 8.3700',
43
        'expected_output': 'SAM HARRIS MEDIA INC',
44
    },
45
    {
46
        'input': '05.07 KIWI 471 BISLET THERESESGT 3 OSLO',
47
        'expected_output': 'KIWI 471 BISLET THERESESGT 3 OSLO',
48
    },
49
    {
50
        'input': '04.07 DEN NORSKE TURISTFOR. OSLO',
51
        'expected_output': 'DEN NORSKE TURISTFOR. OSLO',
52
    },
53
    {
54
        'input': 'Nettgiro til: Universitetet i Betalt: 05.07.18',
55
        'expected_output': 'Nettgiro til: Universitetet i',
56
    },
57
    {
58
        'input': '05.07 REMA SANNERGATA SANNERGATA 3 OSLO',
59
        'expected_output': 'REMA SANNERGATA SANNERGATA 3 OSLO',
60
    },
61
    {
62
        'input': 'Vipps',
63
        'expected_output': 'Vipps',
64
    },
65
    {
66
        'input': '04.07 SKOM.DAGESTAD JOSEFINEGT.  OSLO',
67
        'expected_output': 'SKOM.DAGESTAD JOSEFINEGT. OSLO',
68
    },
69
    {
70
        'input': '*4321 29.06 USD 50.00 ITUNES.COM/BILL Rate: 1.0000',
71
        'expected_output': 'ITUNES.COM/BILL',
72
    },
73
    {
74
        'input': '*1234 01.07 NOK 215.00 ITUNES.COM/BILL Kurs: 1.0000',
75
        'expected_output': 'ITUNES.COM/BILL',
76
    },
77
]
78