1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
From: Boyuan Yang <byang@debian.org>
Date: Tue, 26 Mar 2024 16:39:04 -0400
Subject: test_tagpy.py: Disable tests with buggy path issue on pybuild
Debian's pybuild buildsystem uses installed scripts for unit tests.
However, the related data files are not installed together.
Disabling related tests for now before the issue is properly solved.
---
test/test_tagpy.py | 10 ----------
1 file changed, 10 deletions(-)
--- a/test/test_tagpy.py
+++ b/test/test_tagpy.py
@@ -9,12 +9,6 @@
assert e.value.args == ("File does not exist",)
-def test_no_such_type():
- with pytest.raises(ValueError) as e:
- tagpy.FileRef(str(pathlib.Path(__file__).parent.joinpath("foo.bar")))
- assert e.value.args == ("unable to find file type",)
-
-
def test_resolver():
class DemoFile:
pass
@@ -29,7 +23,3 @@
assert isinstance(f._file, DemoFile)
finally:
tagpy.FileRef.fileTypeResolvers = []
-
-
-def test_wav():
- tagpy.FileRef(str(pathlib.Path(__file__).parent.joinpath("Caldhu.wav")))
--- a/test/test_mp4.py
+++ b/test/test_mp4.py
@@ -39,6 +39,7 @@
def test_cover_and_tags():
+ return
with TemporaryDirectory() as tempdir:
current_folder = Path(__file__).parent
tempfile = Path(tempdir).joinpath("Caldhu.mp4")
--- a/test/test_ogg.py
+++ b/test/test_ogg.py
@@ -34,6 +34,7 @@
def test_cover_and_tags():
+ return
with TemporaryDirectory() as tempdir:
current_folder = Path(__file__).parent
tempfile = Path(tempdir).joinpath("la.ogg")
|