Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 598368 Details for
Bug 701922
New ebuild dev-python/spotify-music-videos
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Remove the test directory patch
tests.patch (text/plain), 2.64 KB, created by
Andrew Nowa Ammerlaan
on 2019-12-03 20:17:11 UTC
(
hide
)
Description:
Remove the test directory patch
Filename:
MIME Type:
Creator:
Andrew Nowa Ammerlaan
Created:
2019-12-03 20:17:11 UTC
Size:
2.64 KB
patch
obsolete
>diff --git a/tests/__init__.py b/tests/__init__.py >deleted file mode 100644 >index e69de29..0000000 >diff --git a/tests/test_dbus.py b/tests/test_dbus.py >deleted file mode 100644 >index 96ed62e..0000000 >--- a/tests/test_dbus.py >+++ /dev/null >@@ -1,59 +0,0 @@ >-import logging >-import unittest >- >-from spotify_videos.vlc_player import VLCPlayer >-from spotify_videos.dbus_api import DBusAPI >- >- >-class DBusTest(unittest.TestCase): >- def setUp(self): >- logger = logging.getLogger() >- >- self.player = DBusAPI(VLCPlayer(logger), logger) >- >- def test_bool_status(self): >- self.assertFalse(self.player._bool_status("stopped")) >- self.assertFalse(self.player._bool_status("sToPPeD")) >- self.assertFalse(self.player._bool_status("paused")) >- self.assertFalse(self.player._bool_status("paUsEd")) >- self.assertTrue(self.player._bool_status("playing")) >- self.assertTrue(self.player._bool_status("Playing")) >- >- def test_formatted_metadata(self): >- metadata = { >- 'xesam:artist': [''], >- 'xesam:title': 'Rick Astley - Never Gonna Give You Up' >- } >- artist, title = self.player._formatted_metadata(metadata) >- self.assertTrue(artist == "Rick Astley" >- and title == "Never Gonna Give You Up") >- >- metadata['xesam:title'] = "Rick Astley: Never Gonna Give You Up" >- artist, title = self.player._formatted_metadata(metadata) >- self.assertTrue(artist == "Rick Astley" >- and title == "Never Gonna Give You Up") >- >- metadata['xesam:title'] = "Rick Astley : Never Gonna Give You Up" >- artist, title = self.player._formatted_metadata(metadata) >- self.assertTrue(artist == "Rick Astley" >- and title == "Never Gonna Give You Up") >- >- metadata['xesam:title'] = "Rick Astley Never Gonna Give You Up" >- artist, title = self.player._formatted_metadata(metadata) >- self.assertTrue(artist == "" >- and title == "Rick Astley Never Gonna Give You Up") >- >- metadata['xesam:title'] = "Rick - Astley - Never Gonna Give You Up" >- artist, title = self.player._formatted_metadata(metadata) >- self.assertTrue(artist == "Rick" >- and title == "Astley - Never Gonna Give You Up") >- >- metadata['xesam:artist'][0] = "Rick Astley" >- metadata['xesam:title'] = "Never Gonna - Give You Up" >- artist, title = self.player._formatted_metadata(metadata) >- self.assertTrue(artist == "Rick Astley" >- and title == "Never Gonna - Give You Up") >- >- >-if __name__ == '__main__': >- unittest.main()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 701922
:
598366
| 598368 |
598420