From 856df0ec5823ae12682fe4c4bcd4c15a062be1dc Mon Sep 17 00:00:00 2001 From: la-ninpre Date: Wed, 14 Jul 2021 19:35:12 +0300 Subject: add support for other file types (to be improved) currently images that were sent as files are supported, but their files land in `files` directory. text file and additional image used for test are stored as symlinks now, because i don't want them to consume too much space. --- tests/files/LICENSE.md | 1 + tests/files/dice.svg | 603 +++++++++++++++++++++++++++ tests/files/dice.svg_thumb.jpg | Bin 0 -> 8124 bytes tests/photos/photo_3@14-07-2021_18-52-46.jpg | 1 + tests/result.json | 57 +++ 5 files changed, 662 insertions(+) create mode 120000 tests/files/LICENSE.md create mode 100644 tests/files/dice.svg create mode 100644 tests/files/dice.svg_thumb.jpg create mode 120000 tests/photos/photo_3@14-07-2021_18-52-46.jpg (limited to 'tests') diff --git a/tests/files/LICENSE.md b/tests/files/LICENSE.md new file mode 120000 index 0000000..f0608a6 --- /dev/null +++ b/tests/files/LICENSE.md @@ -0,0 +1 @@ +../../LICENSE.md \ No newline at end of file diff --git a/tests/files/dice.svg b/tests/files/dice.svg new file mode 100644 index 0000000..07a9b09 --- /dev/null +++ b/tests/files/dice.svg @@ -0,0 +1,603 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/files/dice.svg_thumb.jpg b/tests/files/dice.svg_thumb.jpg new file mode 100644 index 0000000..bf2a611 Binary files /dev/null and b/tests/files/dice.svg_thumb.jpg differ diff --git a/tests/photos/photo_3@14-07-2021_18-52-46.jpg b/tests/photos/photo_3@14-07-2021_18-52-46.jpg new file mode 120000 index 0000000..d8a69f8 --- /dev/null +++ b/tests/photos/photo_3@14-07-2021_18-52-46.jpg @@ -0,0 +1 @@ +photo_1@12-11-2020_12-57-31.jpg \ No newline at end of file diff --git a/tests/result.json b/tests/result.json index 30e65f8..8853cda 100644 --- a/tests/result.json +++ b/tests/result.json @@ -217,6 +217,63 @@ "from": "test", "from_id": "channel1292077344", "text": "тестирование utf-8." + }, + { + "id": 22, + "type": "message", + "date": "2021-07-14T18:40:10", + "edited": "2021-07-14T18:40:24", + "from": "test", + "from_id": "channel1292077344", + "file": "files/dice.svg", + "thumbnail": "files/dice.svg_thumb.jpg", + "mime_type": "image/svg+xml", + "width": 622, + "height": 406, + "text": "test file other than sound" + }, + { + "id": 23, + "type": "message", + "date": "2021-07-14T18:52:46", + "from": "test", + "from_id": "channel1292077344", + "photo": "photos/photo_3@14-07-2021_18-52-46.jpg", + "width": 801, + "height": 526, + "text": "multiple photos" + }, + { + "id": 24, + "type": "message", + "date": "2021-07-14T18:52:46", + "from": "test", + "from_id": "channel1292077344", + "photo": "photos/photo_3@14-07-2021_18-52-46.jpg", + "width": 801, + "height": 526, + "text": "" + }, + { + "id": 25, + "type": "message", + "date": "2021-07-14T18:52:46", + "from": "test", + "from_id": "channel1292077344", + "photo": "photos/photo_3@14-07-2021_18-52-46.jpg", + "width": 801, + "height": 526, + "text": "" + }, + { + "id": 26, + "type": "message", + "date": "2021-07-14T19:20:23", + "from": "test", + "from_id": "channel1292077344", + "file": "files/LICENSE.md", + "mime_type": "text/markdown", + "text": "test text file" } ] } \ No newline at end of file -- cgit v1.2.3