forked from pool/python-pytest-isort
- Add patch pytest6.patch to fix tests - Drop python2 because newer pytest is needed OBS-URL: https://build.opensuse.org/request/show/829551 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-isort?expand=0&rev=13
23 lines
814 B
Diff
23 lines
814 B
Diff
Index: pytest-isort-1.1.0/test_isort.py
|
|
===================================================================
|
|
--- pytest-isort-1.1.0.orig/test_isort.py
|
|
+++ pytest-isort-1.1.0/test_isort.py
|
|
@@ -155,7 +155,7 @@ class TestIsortItem:
|
|
path = testdir.tmpdir
|
|
kwargs = {}
|
|
|
|
- test_obj = IsortItem(path, parent, **kwargs)
|
|
+ test_obj = IsortItem.from_parent(parent, **kwargs, fspath=path)
|
|
|
|
assert test_obj.name == path.basename
|
|
assert test_obj.parent == parent
|
|
@@ -183,7 +183,7 @@ class TestIsortItem:
|
|
path = testdir.tmpdir
|
|
kwargs = {'fspath': path}
|
|
|
|
- test_obj = IsortItem(None, parent, **kwargs)
|
|
+ test_obj = IsortItem.from_parent(parent, **kwargs)
|
|
|
|
assert test_obj.name == path.basename
|
|
assert test_obj.parent == parent
|