-
Notifications
You must be signed in to change notification settings - Fork 16
/
main_test.py
41 lines (37 loc) · 903 Bytes
/
main_test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import pytest
from sqlalchemy import create_engine
@pytest.mark.parametrize(
["module"],
[
# TODO: zapnout postupne dalsi
("ares",),
# czechinvest uplne zrusil svoje data asi - poptavam
# ("czechinvest",), # TODO
("czechpoint",),
("datovky",),
("dotinfo",),
# ("eufondy",),
("iissp",),
# ("justice",),
# TODO: psp ma problem s konektivitou
# ("psp",),
# ("steno",),
# ("red",),
("res",),
("ruian",),
("smlouvy",),
("szif",),
("udhpsh",),
# ("volby",),
("zakazky",),
],
)
def test_partial(tmp_path, module):
from . import main
engine = create_engine(f"sqlite:///{tmp_path / 'data.db'}")
main.main(
base_outdir=tmp_path,
module_name=module,
partial=True,
engine=engine,
)