Edit stub for more "conventional" descriptions + delete some useless pins
continuous-integration/drone/push Build is passing Details

master
Alix JEUDI--LEMOINE 3 days ago
parent 84426a6678
commit e2d870d3d2

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 208 KiB

After

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 357 KiB

After

Width:  |  Height:  |  Size: 363 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 206 KiB

After

Width:  |  Height:  |  Size: 212 KiB

@ -1,20 +1,4 @@
[{ [{
"_id": {
"$oid": "6841f38f80cc1ed56dac3f5f"
},
"pin_id": {
"$oid": "6841f38f80cc1ed56dac3f60"
},
"image_hash": "01b636ab8a23d741fed4a15181b7beecad103ef8e89e52eed6c7b6e5901bb2be",
"metadata": {
"created_at": "2025-06-05T21:44:15.783516",
"original_filename": "IMG_4501.jpeg",
"mime_type": "image/jpeg",
"size": 358243
},
"caption": null
},
{
"_id": { "_id": {
"$oid": "6841f3a080cc1ed56dac3f61" "$oid": "6841f3a080cc1ed56dac3f61"
}, },
@ -350,22 +334,6 @@
}, },
"caption": null "caption": null
}, },
{
"_id": {
"$oid": "6841f95c80cc1ed56dac3f82"
},
"pin_id": {
"$oid": "6841f95c80cc1ed56dac3f83"
},
"image_hash": "9f7fe5504191781f40f3866c5228f82f36324102b24b1bc613dae4d25f453faa",
"metadata": {
"created_at": "2025-06-05T22:09:00.519360",
"original_filename": "IMG_4543.jpeg",
"mime_type": "image/jpeg",
"size": 245869
},
"caption": null
},
{ {
"_id": { "_id": {
"$oid": "6841f9ed80cc1ed56dac3f84" "$oid": "6841f9ed80cc1ed56dac3f84"

@ -3,14 +3,13 @@
"$oid": "6841f38f80cc1ed56dac3f60" "$oid": "6841f38f80cc1ed56dac3f60"
}, },
"title": "Le PC", "title": "Le PC",
"description": "Wow c RGB", "description": "Wow c'est multicolore",
"location": [ "location": [
45.76651388888889, 45.76651388888889,
3.1059083333333333 3.1059083333333333
], ],
"complete_address": "33, Boulevard Paul Pochet-Lagaye, La Chaux, Clermont-Ferrand, Puy-de-Dôme, Auvergne-Rhône-Alpes, France métropolitaine, 63000, France", "complete_address": "33, Boulevard Paul Pochet-Lagaye, La Chaux, Clermont-Ferrand, Puy-de-Dôme, Auvergne-Rhône-Alpes, France métropolitaine, 63000, France",
"files": [ "files": [
"6841f38f80cc1ed56dac3f5f",
"6841f3a080cc1ed56dac3f61" "6841f3a080cc1ed56dac3f61"
], ],
"is_poi": false, "is_poi": false,
@ -24,7 +23,7 @@
"$oid": "6841f48d80cc1ed56dac3f6a" "$oid": "6841f48d80cc1ed56dac3f6a"
}, },
"title": "Au bord de Porto-Vecchio", "title": "Au bord de Porto-Vecchio",
"description": "Un petit panorama pour rigoler ", "description": "Un petit panorama parce que l'endroit est magnifique",
"location": [ "location": [
41.66112777777778, 41.66112777777778,
9.198280555555556 9.198280555555556
@ -45,7 +44,7 @@
"$oid": "6841f50a80cc1ed56dac3f6d" "$oid": "6841f50a80cc1ed56dac3f6d"
}, },
"title": "Île Lavezzi", "title": "Île Lavezzi",
"description": "Wowww", "description": "Carte postale en vrai : bienvenue aux îles Lavezzi 🌊☀️",
"location": [ "location": [
41.33654722222222, 41.33654722222222,
9.258111111111111 9.258111111111111
@ -110,7 +109,7 @@
"$oid": "6841f7c980cc1ed56dac3f7a" "$oid": "6841f7c980cc1ed56dac3f7a"
}, },
"title": "El Mouradi Palace", "title": "El Mouradi Palace",
"description": "Jai fait la chicha en douce en plus, faut pas le dire à papa maman 😳", "description": "Les vacances bien reposantes",
"location": [ "location": [
35.91128611111111, 35.91128611111111,
10.581647222222221 10.581647222222221
@ -153,32 +152,12 @@
"$date": "2018-07-25T00:00:00.000Z" "$date": "2018-07-25T00:00:00.000Z"
} }
}, },
{
"_id": {
"$oid": "6841f95c80cc1ed56dac3f83"
},
"title": "Bâtiment Info",
"description": "Mesdames et messieurs, le plafond de la C21 😱🤩",
"location": [
45.76230555555556,
3.109025
],
"complete_address": "Université Clermont Auvergne - Campus des Cézeaux, Rue du Docteur Teilhol, Les Foisses, Aubière, Clermont-Ferrand, Puy-de-Dôme, Auvergne-Rhône-Alpes, France métropolitaine, 63170, France",
"files": [
"6841f95c80cc1ed56dac3f82"
],
"is_poi": false,
"user_id": "6841f1f936abfa071cbff4cd",
"date": {
"$date": "2025-06-05T00:00:00.000Z"
}
},
{ {
"_id": { "_id": {
"$oid": "6841f9ed80cc1ed56dac3f85" "$oid": "6841f9ed80cc1ed56dac3f85"
}, },
"title": "Fontaine de Trevi", "title": "Fontaine de Trevi",
"description": "Gros pipi", "description": "Un jeton, un vœu… et une promesse de revenir. ✨",
"location": [ "location": [
41.90067777777778, 41.90067777777778,
12.483297222222223 12.483297222222223
@ -198,7 +177,7 @@
"$oid": "6841fb7380cc1ed56dac3f89" "$oid": "6841fb7380cc1ed56dac3f89"
}, },
"title": "Sanctuaire dAsclépios", "title": "Sanctuaire dAsclépios",
"description": "Un vraie ruine, pas merci maman pour lidée ! Et puis la dacia sans compteur elle a pas trop aimée le trajet 😂", "description": "La mémoire sefface, pierre après pierre. Mais le vent, lui, se souvient.",
"location": [ "location": [
"37.6259460", "37.6259460",
"23.0763921" "23.0763921"
@ -219,13 +198,13 @@
"_id": { "_id": {
"$oid": "6841fc4580cc1ed56dac3f8b" "$oid": "6841fc4580cc1ed56dac3f8b"
}, },
"title": "Lacropole", "title": "Odéon d'Hérode Atticus",
"description": "Cest déjà mieux que lautre ruine 😂", "description": "Impossible de ne pas sarrêter devant ce chef-dœuvre.",
"location": [ "location": [
"37.9716894", "37.9708191",
"23.7263197" "23.7245465"
], ],
"complete_address": "Acropole, Παναθηναίων, Asterokopío, Anafiótika, Πετράλωνα, 3η Κοινότητα Αθηνών, Athènes, Δήμος Αθηναίων, Περιφερειακή Ενότητα Κεντρικού Τομέα Αθηνών, Attique, 105 55, Grèce", "complete_address": "Odéon d'Hérode Atticus, Περίπατος Ακρόπολης (Νότια κλιτύς), Asterokopío, Anafiótika, Πετράλωνα, 3rd District of Athens, Athènes, Municipality of Athens, Regional Unit of Central Athens, Attique, 117 42, Grèce",
"files": [ "files": [
"6841fc4580cc1ed56dac3f8a" "6841fc4580cc1ed56dac3f8a"
], ],
@ -303,7 +282,7 @@
"$oid": "6841fe3180cc1ed56dac3f9a" "$oid": "6841fe3180cc1ed56dac3f9a"
}, },
"title": "Minerve", "title": "Minerve",
"description": "Un des plus beaux villages de France, très très sympathique ", "description": "Un des plus beaux villages de France, très très sympathique !",
"location": [ "location": [
43.353405555555554, 43.353405555555554,
2.7475972222222222 2.7475972222222222
@ -367,7 +346,7 @@
"$oid": "6841ffbb80cc1ed56dac3fa4" "$oid": "6841ffbb80cc1ed56dac3fa4"
}, },
"title": "Venise", "title": "Venise",
"description": "Venise cest beau ", "description": "Une ville posée sur leau... et dans ma mémoire 💦📸",
"location": [ "location": [
"45.4371908", "45.4371908",
"12.3345898" "12.3345898"

@ -113,29 +113,6 @@ def test_update_caption(token):
) )
assert response.status_code == 200 assert response.status_code == 200
# # Vérifier que la légende a été mise à jour
# caption_response = client.get(
# f"/image/{image_id}/caption",
# headers={"Authorization": f"Bearer {token}"}
# )
# assert caption_response.status_code == 200
# assert caption_response.json()["caption"] == "Updated caption"
# def test_get_caption(token):
# pin_id = create_test_pin(token)
# image_id = add_test_image(token, pin_id, "Test caption")
# print(pin_id, image_id)
# response = client.get(
# f"/image/{image_id}/caption",
# headers={"Authorization": f"Bearer {token}"}
# )
# assert response.status_code == 200
# data = response.json()
# print(data)
# print("CCCNQSDONQSOJNDJIOQSJDNQJOSNDOJNQSD")
# assert "caption" in data
# assert data["caption"] == "Test caption"
def test_get_caption_unauthorized(token, token_second): def test_get_caption_unauthorized(token, token_second):
pin_id = create_test_pin(token) pin_id = create_test_pin(token)
image_id = add_test_image(token, pin_id) image_id = add_test_image(token, pin_id)

Loading…
Cancel
Save