<commit_before>import unittest

from mopidy.backends.gstreamer import GStreamerBackend

from tests.backends.basetests import (BasePlaybackControllerTest,
                                      BaseCurrentPlaylistControllerTest)

class GStreamerCurrentPlaylistHandlerTest(BaseCurrentPlaylistControllerTest, unittest.TestCase):
    uris = ['file://data/song1.mp3',
            'file://data/song2.mp3',
            'file://data/song3.mp3',
           ]

    backend_class = GStreamerBackend

class GStreamerPlaybackControllerTest(BasePlaybackControllerTest, unittest.TestCase):
    uris = ['file://data/song1.mp3',
            'file://data/song2.mp3',
            'file://data/song3.mp3',
           ]

    backend_class = GStreamerBackend
    supports_volume = True

if __name__ == '__main__':
    unittest.main()<commit_msg>Use actuall mp3s for testing<commit_after>import unittest
import os

from mopidy.backends.gstreamer import GStreamerBackend

from tests.backends.basetests import (BasePlaybackControllerTest,
                                      BaseCurrentPlaylistControllerTest)

folder = os.path.dirname(__file__)
folder = os.path.join(folder, '..', 'data')
folder = os.path.abspath(folder)
song = os.path.join(folder, 'song%s.mp3')
song = 'file://' + song

class GStreamerCurrentPlaylistHandlerTest(BaseCurrentPlaylistControllerTest, unittest.TestCase):
    uris = [song % i for i in range(1, 4)]

    backend_class = GStreamerBackend

class GStreamerPlaybackControllerTest(BasePlaybackControllerTest, unittest.TestCase):
    uris = [song % i for i in range(1, 4)]

    backend_class = GStreamerBackend
    supports_volume = True

if __name__ == '__main__':
    unittest.main()
{'fraction_non_alphanumeric': 0.10083036773428232, 'fraction_numerical': 0.010676156583629894, 'mean_word_length': 3.451187335092348, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4199209', 'n_tokens_mistral': 527, 'n_tokens_neox': 514, 'n_words': 96}