Skip to content

Commit

Permalink
Add pages fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Apr 11, 2024
1 parent 97bdee2 commit beed798
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/fixtures/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
!*.warc.gz
!*.wacz
!*.jsonl
!pages/*.jsonl
4 changes: 4 additions & 0 deletions tests/fixtures/pages/extraPages.jsonl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{"format": "json-pages-1.0", "id": "extra-pages", "title": "Extra Pages"}
{"id": "e33b4ca5-ce1d-46b2-83ea-405c43b949c5", "url": "https://webrecorder.net/tools", "title": "Webrecorder | Tools", "loadState": 4, "status": 200, "favIconUrl": "https://webrecorder.net/assets/favicon.ico", "ts": "2024-03-20T20:41:22Z"}
{"id": "d026299c-3e37-4473-bcb4-742bc005b25d", "url": "https://webrecorder.net/blog", "title": "Webrecorder | Blog", "loadState": 4, "status": 200, "favIconUrl": "https://webrecorder.net/assets/favicon.ico", "ts": "2024-03-20T20:41:20Z"}
{"id": "726e4e11-abb5-447d-b0be-61c4de7bb4b1", "url": "https://webrecorder.net/community", "title": "Webrecorder | Community", "loadState": 4, "status": 200, "favIconUrl": "https://webrecorder.net/assets/favicon.ico", "ts": "2024-03-20T20:41:20Z"}
2 changes: 2 additions & 0 deletions tests/fixtures/pages/invalid.jsonl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{id": "extra-pages", "title": "Extra Pages"}
{"id": "8e584989-8e90-41d6-9f27-c15d0fefe437", "url": "https://webrecorder.net/about", "title": "Webrecorder | About", "loadState": 4, "status": null, "favIconUrl": "https://webrecorder.net/assets/favicon.ico", "ts": "2024-03-20T20:41:20Z"}
1 change: 1 addition & 0 deletions tests/fixtures/pages/invalid.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Not a JSONL file
2 changes: 2 additions & 0 deletions tests/fixtures/pages/pages.jsonl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{"format": "json-pages-1.0", "id": "pages", "title": "All Pages"}
{"id": "3e01410a-e0a8-4b6f-8a6a-fca6302d9916", "url": "https://webrecorder.net/", "title": "Webrecorder", "loadState": 4, "status": 200, "seed": true, "favIconUrl": "https://webrecorder.net/assets/favicon.ico", "ts": "2024-03-20T20:41:17Z"}

0 comments on commit beed798

Please sign in to comment.