/
coverage_rc.tenjin
56 lines (49 loc) · 1.58 KB
/
coverage_rc.tenjin
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
49
50
51
52
53
54
55
56
<?py from jenkinsflow.test.cfg import ApiType ?>
<?py import os ?>
[report]
fail_under = {==fail_under==}
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# utility scripts
# This is hopefully covered by a subprocess call, but it won't be collected
if __name__ == "__main__":
# The alternative (original) rest api is no longer tested
def _check_restkit_response
class RestkitRestApi
<?py if ApiType.JENKINS in api_types: ?>
<?py if os.environ.get('HUDSON_URL'): ?>
# Parts of jenkins_api not used when hudson
if self.jenkins.is_jenkins
if head_response.get\("X-Jenkins"\)
<?py else: ?>
# Parts of jenkins_api not used when jenkins
else: # Hudson
self.is_jenkins = False
if head_response.get\("X-Hudson"\)
<?py #endif ?>
<?py #endif ?>
<?py if api_types == [ApiType.SCRIPT]: ?>
# Parts of api_base not used in script_api (overridden methods)
return (self.job.public_uri + '/' + repr(self.build_number) + '/console')
<?py #endif ?>
<?py if major_version >= 3: ?>
if major_version < 3
<?py else: ?>
import subprocess
<?py #endif ?>
omit =
{==top_dir==}/.tox/*
{==top_dir==}/.eggs/*
{==top_dir==}/test/*
{==top_dir==}/demo/*
{==top_dir==}/visual/server.py
{==top_dir==}/setup.py
{==top_dir==}/ordered_enum.py
*_flymake.py
<?py if ApiType.JENKINS not in api_types: ?>
{==top_dir==}/jenkins_api.py
<?py #endif ?>
<?py if ApiType.SCRIPT not in api_types: ?>
{==top_dir==}/script_api.py
<?py #endif ?>