mirror of
https://github.com/searxng/searxng.git
synced 2025-07-31 14:33:50 -04:00
[test] calculator plugin: report the DeprecationWarning once (#5070)
Reporting the DeprecationWarning once should be sufficient when running tests.
This commit is contained in:
parent
40b78ad06c
commit
6b9e12e4c1
@ -1,6 +1,8 @@
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
# pylint: disable=missing-module-docstring,disable=missing-class-docstring,invalid-name
|
||||
|
||||
import warnings
|
||||
|
||||
from parameterized.parameterized import parameterized
|
||||
|
||||
import searx.plugins
|
||||
@ -14,6 +16,10 @@ from .test_utils import random_string
|
||||
from .test_plugins import do_post_search
|
||||
|
||||
|
||||
# Reporting the DeprecationWarning once should be sufficient when running tests
|
||||
warnings.filterwarnings("once", category=DeprecationWarning)
|
||||
|
||||
|
||||
class PluginCalculator(SearxTestCase):
|
||||
|
||||
def setUp(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user