SHA256
1
0
forked from pool/python-lml
Files
python-lml/python-lml-no-mock.patch
Matej Cepl 8b3459dba4 Accepting request 964262 from home:pgajdos:python
- version update to 0.1.0
  #. non class object can be a plugin too
  #. `#20 <https://github.com/python-lml/lml/issues/20>`_: When a plugin was not
     installed, it now calls raise_exception method
- test the package
- deleted patches
  - remove_nose.patch (upstreamed)
- added patches
  fix https://github.com/python-lml/lml/issues/26
  + python-lml-no-mock.patch

OBS-URL: https://build.opensuse.org/request/show/964262
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lml?expand=0&rev=8
2022-03-23 21:28:18 +00:00

37 lines
1.2 KiB
Diff

Index: lml-0.1.0/tests/test_plugin_loader.py
===================================================================
--- lml-0.1.0.orig/tests/test_plugin_loader.py 2020-10-21 15:43:35.000000000 +0200
+++ lml-0.1.0/tests/test_plugin_loader.py 2022-03-23 12:11:13.572130494 +0100
@@ -1,4 +1,4 @@
-from mock import patch
+from unittest.mock import patch
@patch("pkgutil.get_importer")
Index: lml-0.1.0/tests/test_plugin_manager.py
===================================================================
--- lml-0.1.0.orig/tests/test_plugin_manager.py 2020-10-21 15:43:35.000000000 +0200
+++ lml-0.1.0/tests/test_plugin_manager.py 2022-03-23 12:11:45.524320687 +0100
@@ -6,7 +6,7 @@ from lml.plugin import (
_show_me_your_name,
)
-from mock import patch
+from unittest.mock import patch
from pytest import raises
Index: lml-0.1.0/tests/test_utils.py
===================================================================
--- lml-0.1.0.orig/tests/test_utils.py 2020-10-21 15:43:35.000000000 +0200
+++ lml-0.1.0/tests/test_utils.py 2022-03-23 12:12:00.560410186 +0100
@@ -1,7 +1,7 @@
from lml.utils import do_import, json_dumps
from lml.plugin import PluginManager
-from mock import patch
+from unittest.mock import patch
from pytest import raises