Skip to content

Commit

Permalink
Fix random image rendition IDs in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Dec 12, 2024
1 parent ecc3f82 commit a6f978b
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 72 deletions.
16 changes: 8 additions & 8 deletions etna/api/tests/expected_results/article.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@
"id": 12,
"title": "An image",
"jpeg": {
"url": "/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.jpg",
"url": "/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"width": 100,
"height": 100
},
"webp": {
"url": "/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.webp",
"url": "/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.bgcolor-fff.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.bgcolor-fff.webp",
"width": 100,
"height": 100
}
Expand All @@ -74,14 +74,14 @@
"id": 13,
"title": "An image",
"jpeg": {
"url": "/media/images/exampl.2e16d0ba.fill-1200x480.format-jpeg.jpegquality-60.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-1200x480.format-jpeg.jpegquality-60.jpg",
"url": "/media/images/exampl.2e16d0ba.fill-1200x480.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-1200x480.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"width": 100,
"height": 40
},
"webp": {
"url": "/media/images/examp.2e16d0ba.fill-1200x480.format-webp.webpquality-60.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/examp.2e16d0ba.fill-1200x480.format-webp.webpquality-60.webp",
"url": "/media/images/examp.2e16d0ba.fill-1200x480.format-webp.webpquality-60.bgcolor-fff.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/examp.2e16d0ba.fill-1200x480.format-webp.webpquality-60.bgcolor-fff.webp",
"width": 100,
"height": 40
},
Expand Down
8 changes: 4 additions & 4 deletions etna/api/tests/expected_results/article_index.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@
"id": 11,
"title": "An image",
"jpeg": {
"url": "/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.jpg",
"url": "/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"width": 100,
"height": 100
},
"webp": {
"url": "/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.webp",
"url": "/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.bgcolor-fff.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.bgcolor-fff.webp",
"width": 100,
"height": 100
}
Expand Down
16 changes: 8 additions & 8 deletions etna/api/tests/expected_results/arts.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@
"id": 2,
"title": "An image",
"jpeg": {
"url": "/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.jpg",
"url": "/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"width": 100,
"height": 100
},
"webp": {
"url": "/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.webp",
"url": "/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.bgcolor-fff.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.bgcolor-fff.webp",
"width": 100,
"height": 100
}
Expand All @@ -67,14 +67,14 @@
"id": 3,
"title": "An image",
"jpeg": {
"url": "/media/images/exampl.2e16d0ba.fill-1200x480.format-jpeg.jpegquality-60.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-1200x480.format-jpeg.jpegquality-60.jpg",
"url": "/media/images/exampl.2e16d0ba.fill-1200x480.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-1200x480.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"width": 100,
"height": 40
},
"webp": {
"url": "/media/images/examp.2e16d0ba.fill-1200x480.format-webp.webpquality-60.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/examp.2e16d0ba.fill-1200x480.format-webp.webpquality-60.webp",
"url": "/media/images/examp.2e16d0ba.fill-1200x480.format-webp.webpquality-60.bgcolor-fff.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/examp.2e16d0ba.fill-1200x480.format-webp.webpquality-60.bgcolor-fff.webp",
"width": 100,
"height": 40
},
Expand Down
24 changes: 12 additions & 12 deletions etna/api/tests/expected_results/author.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@
"id": 10,
"title": "An image",
"jpeg": {
"url": "/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.jpg",
"url": "/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"width": 100,
"height": 100
},
"webp": {
"url": "/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.webp",
"url": "/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.bgcolor-fff.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.bgcolor-fff.webp",
"width": 100,
"height": 100
}
Expand Down Expand Up @@ -87,14 +87,14 @@
"id": 9,
"title": "An image",
"jpeg": {
"url": "/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.jpg",
"url": "/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"width": 100,
"height": 100
},
"webp": {
"url": "/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.webp",
"url": "/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.bgcolor-fff.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.bgcolor-fff.webp",
"width": 100,
"height": 100
}
Expand All @@ -103,14 +103,14 @@
"id": 9,
"title": "An image",
"jpeg": {
"url": "/media/images/example.2e16d0ba.fill-128x128.format-jpeg.jpegquality-60.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-128x128.format-jpeg.jpegquality-60.jpg",
"url": "/media/images/example.2e16d0ba.fill-128x128.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-128x128.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"width": 100,
"height": 100
},
"webp": {
"url": "/media/images/exampl.2e16d0ba.fill-128x128.format-webp.webpquality-60.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-128x128.format-webp.webpquality-60.webp",
"url": "/media/images/exampl.2e16d0ba.fill-128x128.format-webp.webpquality-60.bgcolor-fff.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-128x128.format-webp.webpquality-60.bgcolor-fff.webp",
"width": 100,
"height": 100
}
Expand Down
16 changes: 8 additions & 8 deletions etna/api/tests/expected_results/early_modern.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@
"id": 4,
"title": "An image",
"jpeg": {
"url": "/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.jpg",
"url": "/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"width": 100,
"height": 100
},
"webp": {
"url": "/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.webp",
"url": "/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.bgcolor-fff.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.bgcolor-fff.webp",
"width": 100,
"height": 100
}
Expand All @@ -67,14 +67,14 @@
"id": 5,
"title": "An image",
"jpeg": {
"url": "/media/images/exampl.2e16d0ba.fill-1200x480.format-jpeg.jpegquality-60.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-1200x480.format-jpeg.jpegquality-60.jpg",
"url": "/media/images/exampl.2e16d0ba.fill-1200x480.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-1200x480.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"width": 100,
"height": 40
},
"webp": {
"url": "/media/images/examp.2e16d0ba.fill-1200x480.format-webp.webpquality-60.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/examp.2e16d0ba.fill-1200x480.format-webp.webpquality-60.webp",
"url": "/media/images/examp.2e16d0ba.fill-1200x480.format-webp.webpquality-60.bgcolor-fff.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/examp.2e16d0ba.fill-1200x480.format-webp.webpquality-60.bgcolor-fff.webp",
"width": 100,
"height": 40
},
Expand Down
32 changes: 16 additions & 16 deletions etna/api/tests/expected_results/focused_article.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@
"id": 14,
"title": "An image",
"jpeg": {
"url": "/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.jpg",
"url": "/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"width": 100,
"height": 100
},
"webp": {
"url": "/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.webp",
"url": "/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.bgcolor-fff.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.bgcolor-fff.webp",
"width": 100,
"height": 100
}
Expand All @@ -74,14 +74,14 @@
"id": 15,
"title": "An image",
"jpeg": {
"url": "/media/images/exampl.2e16d0ba.fill-1200x480.format-jpeg.jpegquality-60.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-1200x480.format-jpeg.jpegquality-60.jpg",
"url": "/media/images/exampl.2e16d0ba.fill-1200x480.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-1200x480.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"width": 100,
"height": 40
},
"webp": {
"url": "/media/images/examp.2e16d0ba.fill-1200x480.format-webp.webpquality-60.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/examp.2e16d0ba.fill-1200x480.format-webp.webpquality-60.webp",
"url": "/media/images/examp.2e16d0ba.fill-1200x480.format-webp.webpquality-60.bgcolor-fff.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/examp.2e16d0ba.fill-1200x480.format-webp.webpquality-60.bgcolor-fff.webp",
"width": 100,
"height": 40
},
Expand Down Expand Up @@ -233,14 +233,14 @@
"id": 9,
"title": "An image",
"jpeg": {
"url": "/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.jpg",
"url": "/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"width": 100,
"height": 100
},
"webp": {
"url": "/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.webp",
"url": "/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.bgcolor-fff.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.bgcolor-fff.webp",
"width": 100,
"height": 100
}
Expand All @@ -249,14 +249,14 @@
"id": 9,
"title": "An image",
"jpeg": {
"url": "/media/images/example.2e16d0ba.fill-128x128.format-jpeg.jpegquality-60.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-128x128.format-jpeg.jpegquality-60.jpg",
"url": "/media/images/example.2e16d0ba.fill-128x128.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-128x128.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"width": 100,
"height": 100
},
"webp": {
"url": "/media/images/exampl.2e16d0ba.fill-128x128.format-webp.webpquality-60.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-128x128.format-webp.webpquality-60.webp",
"url": "/media/images/exampl.2e16d0ba.fill-128x128.format-webp.webpquality-60.bgcolor-fff.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-128x128.format-webp.webpquality-60.bgcolor-fff.webp",
"width": 100,
"height": 100
}
Expand Down
8 changes: 4 additions & 4 deletions etna/api/tests/expected_results/highlight_gallery.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@
"id": 16,
"title": "An image",
"jpeg": {
"url": "/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.jpg",
"url": "/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"width": 100,
"height": 100
},
"webp": {
"url": "/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.webp",
"url": "/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.bgcolor-fff.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.bgcolor-fff.webp",
"width": 100,
"height": 100
}
Expand Down
8 changes: 4 additions & 4 deletions etna/api/tests/expected_results/people.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@
"id": 8,
"title": "An image",
"jpeg": {
"url": "/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.jpg",
"url": "/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"full_url": "https://nationalarchives.gov.uk/media/images/example.2e16d0ba.fill-512x512.format-jpeg.jpegquality-60.bgcolor-fff.jpg",
"width": 100,
"height": 100
},
"webp": {
"url": "/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.webp",
"url": "/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.bgcolor-fff.webp",
"full_url": "https://nationalarchives.gov.uk/media/images/exampl.2e16d0ba.fill-512x512.format-webp.webpquality-60.bgcolor-fff.webp",
"width": 100,
"height": 100
}
Expand Down
Loading

0 comments on commit a6f978b

Please sign in to comment.