Added test for OggTheora Import

merge-requests/237/head
David Magnus Henriques 2018-05-23 23:33:19 +02:00
rodzic 83738e4e04
commit 7ae90305e3
2 zmienionych plików z 16 dodań i 0 usunięć

Wyświetl plik

@ -24,6 +24,22 @@ def test_can_get_metadata_from_ogg_file(field, value):
assert data.get(field) == value
@pytest.mark.parametrize('field,value', [
('title', 'Drei Kreuze (dass wir hier sind)'),
('artist', 'Die Toten Hosen'),
('album', 'Ballast der Republik'),
('date', datetime.date(2012, 5, 4)),
('track_number', 1),
('musicbrainz_albumid', uuid.UUID('1f0441ad-e609-446d-b355-809c445773cf')),
('musicbrainz_recordingid', uuid.UUID('124d0150-8627-46bc-bc14-789a3bc960c8')),
('musicbrainz_artistid', uuid.UUID('c3bc80a6-1f4a-4e17-8cf0-6b1efe8302f1')),
])
def test_can_get_metadata_from_ogg_theora_file(field, value):
path = os.path.join(DATA_DIR, 'test_theora.ogg')
data = metadata.Metadata(path)
assert data.get(field) == value
@pytest.mark.parametrize('field,value', [
('title', 'Bend'),

Plik binarny nie jest wyświetlany.