Skip to content

Commit 63d3e69

Browse files
Louis RannouLouis Rannou
authored andcommitted
tests: prepare for json format
The structure of data changes a bit Signed-off-by: Louis Rannou <[email protected]>
1 parent f5cc228 commit 63d3e69

File tree

2 files changed

+246
-260
lines changed

2 files changed

+246
-260
lines changed

test/test_importer.py

Lines changed: 31 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,39 +2054,37 @@ def mocked_get_release_by_id(
20542054
}
20552055

20562056
return {
2057-
"release": {
2058-
"title": releases[id_][0],
2059-
"id": id_,
2060-
"medium-list": [
2061-
{
2062-
"track-list": [
2063-
{
2064-
"id": "baz",
2065-
"recording": {
2066-
"title": "foo",
2067-
"id": "bar",
2068-
"length": 59,
2069-
},
2070-
"position": 9,
2071-
"number": "A2",
2072-
}
2073-
],
2074-
"position": 5,
2075-
}
2076-
],
2077-
"artist-credit": [
2078-
{
2079-
"artist": {
2080-
"name": releases[id_][1],
2081-
"id": "some-id",
2082-
},
2083-
}
2084-
],
2085-
"release-group": {
2086-
"id": "another-id",
2087-
},
2088-
"status": "Official",
2089-
}
2057+
"title": releases[id_][0],
2058+
"id": id_,
2059+
"media": [
2060+
{
2061+
"tracks": [
2062+
{
2063+
"id": "baz",
2064+
"recording": {
2065+
"title": "foo",
2066+
"id": "bar",
2067+
"length": 59,
2068+
},
2069+
"position": 9,
2070+
"number": "A2",
2071+
}
2072+
],
2073+
"position": 5,
2074+
}
2075+
],
2076+
"artist-credit": [
2077+
{
2078+
"artist": {
2079+
"name": releases[id_][1],
2080+
"id": "some-id",
2081+
},
2082+
}
2083+
],
2084+
"release-group": {
2085+
"id": "another-id",
2086+
},
2087+
"status": "Official",
20902088
}
20912089

20922090

0 commit comments

Comments
 (0)