-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathpytest.ini
56 lines (46 loc) · 1.43 KB
/
pytest.ini
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
[pytest]
# To run tests with coverage, uncomment the following line
addopts = -ra -v --cov=corems --cov-config=pytest.ini --cov-report html --cov-report term -p no:warnings
norecursedirs = win_only
testpaths = tests
[run]
branch = True
omit =
# omit anything in a .local directory anywhere
#*/.local/*
# omit everything in /usr
#/usr/*
## omit this single file
corems/mass_spectra/input/win_only/BrukerCompassXtract.py
corems/mass_spectra/input/win_only/ThermoMSFileReader.py
corems/transient/input/MidasDatFile.py
corems/encapsulation/constant.py
corems/molecular_id/factory/molecularMongo.py
[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about missing debug-only code:
def __repr__
if self\.debug
tb = sys.exc_info()[2]
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
raise FileExistsError
raise
except
if not self.ref_file_location.exists():
#self.sample_name = sample_name
return +1
if not hdf_handle.attrs.get('date_utc'):
if not group_key in hdf_handle.keys():
dt = dtype("l")
dt = dtype("i")
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
ignore_errors = True
[html]
directory = doc/coverage_html_report