-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtest_functional.py
48 lines (46 loc) · 1.91 KB
/
test_functional.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
42
43
44
45
46
47
48
import pytest
@pytest.mark.parametrize(
"method,path",
[
('get_html', '/'),
('get_html', '/contributions'),
('get_html', '/contributions/500'),
('get_html', '/contributions.geojson'),
('get_dt', '/contributions'),
('get_html', '/contributions/28.tab'),
('get_html', '/contributions/208.tab'),
('get_dt', '/languages'),
('get_html', '/contributions/215'),
('get_dt', '/values?iSortCol_0=5&sSortDir_0=asc&iSortingCols=1'),
('get_dt', '/values?contribution=220&iSortingCols=1&iSortCol_0=0'),
('get_dt', '/values?contribution=220&iSortingCols=1&iSortCol_0=2'),
('get_dt', '/values?contribution=220&sSearch_0=1&sSearch_2=4'),
('get_dt', '/values?sSearch_3=mal'),
('get_html', '/contributors'),
('get_dt', '/contributors'),
('get_html', '/parameters'),
('get_dt', '/parameters'),
('get_dt', '/parameters?chapter=1'),
('get_html', '/parameters/1-222'),
('get_json', '/parameters/1-222.geojson'),
('get_dt', '/values?parameter=1-222'),
('get_html', '/languages/182.snippet.html'),
('get_html', '/languages/128.snippet.html?parameter=962'),
('get_html', '/sources'),
('get_dt', '/sources'),
('get_html', '/sources/ainsworth1923'),
('get_html', '/sources/ainsworth1923.snippet.html'),
('get_html', '/valuesets/1-210-234'),
('get_html', '/valuesets/4-732-208'),
('get_html', '/values'),
('get_dt', '/contributions?sSearch_2=a&sSearch_3=aq'),
('get_dt', '/contributors?sSearch_1=Consultant'),
('get_html', '/chapters'),
('get_html', '/providers'),
('get_html', '/providers/ids'),
('get_html', '/languages'),
('get_html', '/languages/26'),
('get_html', '/units/238-365'),
])
def test_pages(app, method, path):
getattr(app, method)(path)