From 02d1238761602d9052d187e35c3cb278e24aaee9 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 24 Jun 2022 11:38:00 +0200 Subject: [PATCH] misc: remove references to sips (#32224) It broke get_backends(). --- eopayment/__init__.py | 2 +- tests/test_misc.py | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 tests/test_misc.py diff --git a/eopayment/__init__.py b/eopayment/__init__.py index 099bc35..719ef49 100644 --- a/eopayment/__init__.py +++ b/eopayment/__init__.py @@ -86,7 +86,7 @@ def get_backend(kind): return module.Payment -__BACKENDS = [DUMMY, SIPS, SIPS2, SYSTEMPAY, OGONE, PAYBOX, PAYZEN, TIPI, PAYFIP_WS, KEYWARE, MOLLIE, SAGA] +__BACKENDS = [DUMMY, SIPS2, SYSTEMPAY, OGONE, PAYBOX, PAYZEN, TIPI, PAYFIP_WS, KEYWARE, MOLLIE, SAGA] def get_backends(): diff --git a/tests/test_misc.py b/tests/test_misc.py new file mode 100644 index 0000000..4115ba5 --- /dev/null +++ b/tests/test_misc.py @@ -0,0 +1,22 @@ +# eopayment - online payment library +# Copyright (C) 2011-2022 Entr'ouvert +# +# This program is free software: you can redistribute it and/or modify it +# under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + + +import eopayment + + +def test_get_backends(): + assert len(eopayment.get_backends()) > 1