Skip to content
Snippets Groups Projects
Commit 7ae90305 authored by EorlBruder's avatar EorlBruder
Browse files

Added test for OggTheora Import

parent 83738e4e
No related branches found
No related tags found
No related merge requests found
......@@ -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'),
......
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment