forked from allenai/allennlp-models
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pytest.ini
33 lines (33 loc) · 1.61 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
[pytest]
testpaths = tests/
python_classes = Test* *Test
log_format = %(asctime)s - %(levelname)s - %(name)s - %(message)s
log_level = DEBUG
markers =
pretrained_model_test
pretrained_config_test
java
gpu: marks tests that need at least one GPU
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.*:
# For this particular warning, we don't want to cause an error for it, but we also don't want to
# see it a whole bunch of times.
once:This particular transformer implementation is a provisional feature.*::allennlp\.modules\.seq2seq_encoders\.bidirectional_language_model_transformer