packages/python/python-yarg/drop-python-mock-dependency.patch
2023-05-13 22:06:32 +02:00

47 lines
1.5 KiB
Diff

diff -aur yarg-0.1.9.old/requirements-test.txt yarg-0.1.9/requirements-test.txt
--- yarg-0.1.9.old/requirements-test.txt 2023-05-01 21:05:56.850103096 +0200
+++ yarg-0.1.9/requirements-test.txt 2023-05-01 21:06:37.230760899 +0200
@@ -1,3 +1,2 @@
nose
coveralls
-mock
diff -aur yarg-0.1.9.old/tests/test_client.py yarg-0.1.9/tests/test_client.py
--- yarg-0.1.9.old/tests/test_client.py 2023-05-01 21:05:56.850103096 +0200
+++ yarg-0.1.9/tests/test_client.py 2023-05-01 21:06:09.133639028 +0200
@@ -1,7 +1,7 @@
import os
import unittest
-from mock import call, MagicMock, patch
+from unittest.mock import call, MagicMock, patch
from yarg import get, HTTPError
diff -aur yarg-0.1.9.old/tests/test_parse.py yarg-0.1.9/tests/test_parse.py
--- yarg-0.1.9.old/tests/test_parse.py 2023-05-01 21:05:56.850103096 +0200
+++ yarg-0.1.9/tests/test_parse.py 2023-05-01 21:06:09.133639028 +0200
@@ -2,7 +2,7 @@
import os
import unittest
-from mock import call, MagicMock, patch
+from unittest.mock import call, MagicMock, patch
from yarg import newest_packages, latest_updated_packages, HTTPError
from yarg.parse import _get, Package
diff -aur yarg-0.1.9.old/tox.ini yarg-0.1.9/tox.ini
--- yarg-0.1.9.old/tox.ini 2023-05-01 21:05:56.850103096 +0200
+++ yarg-0.1.9/tox.ini 2023-05-01 21:06:09.133639028 +0200
@@ -1,10 +1,9 @@
[tox]
-envlist = py26, py27, py33, py34, pypy, pypy3, docs, flake8
+envlist = py26, py27, py33, py34, py38, pypy, pypy3, docs, flake8
[testenv]
deps = nose
requests
- mock
commands = nosetests
[testenv:flake8]