Feature exportdb update 990 (#992)

* Added cloud_guid, #990

* Added fingerprint, cloud_guid to PhotoInfo.json

* Added stub for --migrate-photos-library

* Added --migrate-photos-library option to exportdb, #990
This commit is contained in:
Rhet Turnbull
2023-02-19 22:51:25 -08:00
committed by GitHub
parent 30c036a287
commit 06b02b4a23
11 changed files with 459 additions and 109 deletions

View File

@@ -10,6 +10,7 @@ UUID_DICT = {
"incloud": "FC638F58-84BE-4083-B5DE-F85BDC729062",
"shared": "2094984A-21DC-4A6E-88A6-7344F648B92E",
"cloudasset": "FC638F58-84BE-4083-B5DE-F85BDC729062",
"cloud_guid": "FC638F58-84BE-4083-B5DE-F85BDC729062",
}
@@ -31,3 +32,16 @@ def test_cloudasset_1(photosdb):
def test_path_derivatives(photosdb):
photo = photosdb.get_photo(UUID_DICT["shared"])
assert photo.path_derivatives
def test_cloud_guid(photosdb):
photo = photosdb.get_photo(UUID_DICT["cloud_guid"])
assert photo.cloud_guid == "AV6qPsEIU88bFVPKfEUjoyspg+d+"
def test_cloud_owner_hashed_id(photosdb):
photo = photosdb.get_photo(UUID_DICT["shared"])
assert (
photo.cloud_owner_hashed_id
== "01cac7cde8a8767251a2cdd183b8ed490fc6e87825f4a495389e824a41a01ba7"
)

View File

@@ -13,6 +13,7 @@ UUID_DICT = {
"cloudasset": "D11D25FF-5F31-47D2-ABA9-58418878DC15",
"not_cloudasset": "6191423D-8DB8-4D4C-92BE-9BBBA308AAC4",
"shared": "4AD7C8EF-2991-4519-9D3A-7F44A6F031BE",
"cloud_guid": "C2BBC7A4-5333-46EE-BAF0-093E72111B39",
}
@@ -58,3 +59,16 @@ def test_cloudasset_3():
def test_path_derivatives(photosdb):
photo = photosdb.get_photo(UUID_DICT["shared"])
assert photo.path_derivatives
def test_cloud_guid(photosdb):
photo = photosdb.get_photo(UUID_DICT["cloud_guid"])
assert photo.cloud_guid == "AV6qPsEIU88bFVPKfEUjoyspg+d+"
def test_cloud_owner_hashed_id(photosdb):
photo = photosdb.get_photo(UUID_DICT["shared"])
assert (
photo.cloud_owner_hashed_id
== "01cac7cde8a8767251a2cdd183b8ed490fc6e87825f4a495389e824a41a01ba7"
)