forked from allenai/allennlp-semparse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpytest.ini
26 lines (26 loc) · 1.29 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
[pytest]
testpaths = tests/
log_format = %(asctime)s - %(levelname)s - %(name)s - %(message)s
log_level = DEBUG
filterwarnings =
# Note: When a warning matches more than one option in the list,
# the action for the _last_ matching option is performed.
#
# individual warnings filters are specified as a sequence of fields separated by colons:
# action:message:category:module:line
# <reference: https://docs.python.org/3/library/warnings.html#warning-filter>
#
# how to explicitly test warns
# using `unittest`: https://docs.python.org/3/library/warnings.html#testing-warnings
# using `pytest`: https://docs.pytest.org/en/4.1.0/warnings.html#assertwarnings
#
# Our policy here is to ignore (silence) any deprecation warnings from _outside_ allennlp, but to
# treat any _internal_ deprecation warnings as errors. If we get a deprecation warning from things
# we call in another library, we will just rely on seeing those outside of tests. The purpose of
# having these errors here is to make sure that we do not deprecate things lightly in allennlp.
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
error::DeprecationWarning:allennlp.*:
error::PendingDeprecationWarning:allennlp.*:
error::DeprecationWarning:allennlp_semparse.*:
error::PendingDeprecationWarning:allennlp_semparse.*: