0
0
Fork 0
This repository has been archived on 2025-05-11. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Heliotrope/tests/common.py
Ryu juheon a03b0f3c19
feat: apply hitomi changed (#171)
* fix(interpreter): remove statement (#168)

* refactor(table): hitomi changes applied

* refactor(domain): hitomi changes applied

* refactor(table): hitomi changes applied

* refactor(types): hitomi changes applied

* chore(vscode): add snippets

* refactor(orm): hitomi changes applied

* feat(odm): migration to mongodb (#169)

* feat(odm): migration to mongodb

* feat(config): add config for atlas search

* feat: apply changed

* chore(deps): add dependency

* test: apply changed

* test(config): apply changed

* chore(deps): bump up version motor

* feat!(parser): remove parser

* feat(interpreter): add get thumbnail method

* feat!(info): using galleryinfo

* feat(functions): add getthumbnail method

* feat!(hitomi): remove get info method

* fix(image): now return only webp or avif

* refactor(info): apply hitomi changed

* refactor(mirroring): apply hitomi changed

* fix(types): thumbnail is file

* test(common): edit dict

* style: apply code style

* feat(info): add from dict method

* style(info): fix type issue

* test(arg): fix test

* style(info): apply isort

* fix(domain): init false

* test(common): edit info

* test(conftest): edit image url

* test(mirroring): fix test

* fix(function): add base

* test(conftest): edit image url fixture

* test(conftest): fix conftest

* test(conftest): fix conftest
2022-02-03 19:41:56 +09:00

303 lines
8.6 KiB
Python

galleryinfo = {
"id": 1613730,
"type": "manga",
"date": "2020-04-16 12:13:00-05",
"title": "Sekigahara-san wa Dasaretai | 세키가하라는 발산하고싶어",
"japanese_title": None,
"video": None,
"videofilename": None,
"language_url": None,
"language_localname": "한국어",
"language": "korean",
"languages": [],
"files": [
{
"width": 1359,
"hash": "e8792b2ba4597a63d2ec69247f3bf5193ab33a8572699f47095c91695cbcb1d2",
"haswebp": 1,
"name": "809000.png",
"hasavif": 1,
"height": 1920,
},
{
"width": 1359,
"hash": "379070aaf2fe8a8adc59c44086847f85d46e6215a74142e1a09065783cc1aa6d",
"haswebp": 1,
"name": "809001.png",
"hasavif": 1,
"height": 1920,
},
{
"width": 1359,
"hash": "fda84c6d30ce1b5c3c779916bf8e906e07d64e6661456bc17ffceb5d78b749f4",
"haswebp": 1,
"name": "809002.png",
"hasavif": 1,
"height": 1920,
},
{
"width": 1359,
"hash": "72155754897a4ab7f9c54160cc63d0c95c048ec644656419510f910ec88eff3e",
"haswebp": 1,
"name": "809003.png",
"hasavif": 1,
"height": 1920,
},
{
"width": 1359,
"hash": "9ea9d7ce2941b25b44162b7911684b06ebbcad864a6d579f2f6b2c61e37b0dab",
"haswebp": 1,
"name": "809004.png",
"hasavif": 1,
"height": 1920,
},
{
"width": 1359,
"hash": "e8225de772608e84d8ba55e3c990ff3387118777717391c6a67048476c3d3d35",
"haswebp": 1,
"name": "809005.png",
"hasavif": 1,
"height": 1920,
},
{
"width": 1359,
"hash": "6df16bea287a5178feabfc62b94d64bb7613ca4eb5d1cc8140ec1509fe9b25ff",
"haswebp": 1,
"name": "809006.png",
"hasavif": 1,
"height": 1920,
},
{
"width": 1359,
"hash": "e63c239e150b41659aa09c4819ef0b6c1fc72c62f7c8cac2012bfd024d605aa4",
"haswebp": 1,
"name": "809007.png",
"hasavif": 1,
"height": 1920,
},
{
"width": 1359,
"hash": "38c5848c2b362a36fac1cc8db626d1b1ba0ba0d66c487b1751e82e01dfe831e6",
"haswebp": 1,
"name": "809008.png",
"hasavif": 1,
"height": 1920,
},
{
"width": 1359,
"hash": "901036980d701f6d5953cb85d0d6a692679f50e036d50d72e4eb047532bf46d1",
"haswebp": 1,
"name": "809009.png",
"hasavif": 1,
"height": 1920,
},
{
"width": 1359,
"hash": "61907339fb86534980285f12ae9c3a6f2d9eb4afd4303022be53a4d6e2c8ef6f",
"haswebp": 1,
"name": "809010.png",
"hasavif": 1,
"height": 1920,
},
{
"width": 1359,
"hash": "0bf8806c8c556d10be9baf3f01c087950844dcba2e16115272ec8ee0c5592ad3",
"haswebp": 1,
"name": "809011.png",
"hasavif": 1,
"height": 1920,
},
{
"width": 1359,
"hash": "9368589df1bb6a84ad293119ef90d5f170a60f8342a796344d17bbbd6790c5b2",
"haswebp": 1,
"name": "809012.png",
"hasavif": 1,
"height": 1920,
},
{
"width": 1359,
"hash": "a1acf266bacb2ec85b8284b608c23756a5073489330e9e764178b320a27d317e",
"haswebp": 1,
"name": "809013.png",
"hasavif": 1,
"height": 1920,
},
{
"width": 1359,
"hash": "38cafff51e479bacba2b79547a65b04546bc6bc28a9c0f56f4604ffa682c2375",
"haswebp": 1,
"name": "809014.png",
"hasavif": 1,
"height": 1920,
},
{
"width": 1359,
"hash": "57f08d603e66e6d7039432c66b009d83c795c5bf06b9bc4a7d65f7c964941b66",
"haswebp": 1,
"name": "809015.png",
"hasavif": 1,
"height": 1920,
},
{
"width": 1359,
"hash": "e9312d96f24bba371a1dcf6650ee3ddbf30932764f8ccd2fef61e321f7376951",
"haswebp": 1,
"name": "809016.png",
"hasavif": 1,
"height": 1920,
},
{
"width": 1359,
"hash": "3bc61f23e1ea94d52a8f9f6f2c7c074f66f8cdb5400f8d7cb024798caf2bdab4",
"haswebp": 1,
"name": "809017.png",
"hasavif": 1,
"height": 1920,
},
{
"width": 1359,
"hash": "be2346c556c050cd2466d49b47e060e429e771f55ace51b8f7e5d4000aa91604",
"haswebp": 1,
"name": "809018.png",
"hasavif": 1,
"height": 1920,
},
{
"width": 1359,
"hash": "f70d8eab3446a95b92450b89a8bc2b3d451ed288fdacb158c05086f392bc3d7e",
"haswebp": 1,
"name": "809019.png",
"hasavif": 1,
"height": 1920,
},
{
"width": 1359,
"hash": "fc9cce2b732ed29d75b34844173df045eb055367fe2d366648e1b28aee4856a6",
"haswebp": 1,
"name": "809020.png",
"hasavif": 1,
"height": 1920,
},
],
"related": [1556534, 1379041, 1570712, 1379052, 1333507],
"scene_indexes": [],
"tags": [
{
"url": "/tag/female%3Aahegao-all.html",
"tag": "ahegao",
"male": "",
"female": "1",
},
{
"url": "/tag/female%3Abig%20breasts-all.html",
"tag": "big breasts",
"male": "",
"female": "1",
},
{
"url": "/tag/female%3Adefloration-all.html",
"tag": "defloration",
"male": "",
"female": "1",
},
{
"url": "/tag/female%3Aleg%20lock-all.html",
"tag": "leg lock",
"male": "",
"female": "1",
},
{
"url": "/tag/female%3Alingerie-all.html",
"tag": "lingerie",
"male": "",
"female": "1",
},
{
"url": "/tag/female%3Anakadashi-all.html",
"tag": "nakadashi",
"male": "",
"female": "1",
},
{
"url": "/tag/female%3Apaizuri-all.html",
"tag": "paizuri",
"male": "",
"female": "1",
},
{
"url": "/tag/female%3Aponytail-all.html",
"tag": "ponytail",
"male": "",
"female": "1",
},
{
"url": "/tag/female%3Asole%20female-all.html",
"tag": "sole female",
"male": "",
"female": "1",
},
{
"url": "/tag/female%3Asweating-all.html",
"tag": "sweating",
"male": "",
"female": "1",
},
{
"url": "/tag/male%3Asole%20male-all.html",
"tag": "sole male",
"male": "1",
"female": "",
},
{
"url": "/tag/male%3Asweating-all.html",
"tag": "sweating",
"male": "1",
"female": "",
},
{
"url": "/tag/male%3Avirginity-all.html",
"tag": "virginity",
"male": "1",
"female": "",
},
],
"artists": [{"artist": "tsukako", "url": "/artist/tsukako-all.html"}],
"characters": None,
"groups": None,
"parodys": None,
}
info = {
"id": 1613730,
"title": "Sekigahara-san wa Dasaretai | 세키가하라는 발산하고싶어",
"thumbnail": {
"width": 1359,
"hash": "e8792b2ba4597a63d2ec69247f3bf5193ab33a8572699f47095c91695cbcb1d2",
"haswebp": 1,
"name": "809000.png",
"hasavif": 1,
"height": 1920,
},
"artist": ["tsukako"],
"group": [],
"type": "manga",
"language": "korean",
"series": [],
"character": [],
"tags": [
"female:ahegao",
"female:big_breasts",
"female:defloration",
"female:leg_lock",
"female:lingerie",
"female:nakadashi",
"female:paizuri",
"female:ponytail",
"female:sole_female",
"female:sweating",
"male:sole_male",
"male:sweating",
"male:virginity",
],
"date": "2020-04-16 12:13:00-05",
}