[TASK] (untested) Updated API to work with Immich 3.0
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -29,24 +29,28 @@ class TestActivitiesApi(unittest.TestCase):
|
||||
def test_create_activity(self) -> None:
|
||||
"""Test case for create_activity
|
||||
|
||||
Create an activity
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_delete_activity(self) -> None:
|
||||
"""Test case for delete_activity
|
||||
|
||||
Delete an activity
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_activities(self) -> None:
|
||||
"""Test case for get_activities
|
||||
|
||||
List all activities
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_activity_statistics(self) -> None:
|
||||
"""Test case for get_activity_statistics
|
||||
|
||||
Retrieve activity statistics
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -35,14 +35,14 @@ class TestActivityCreateDto(unittest.TestCase):
|
||||
model = ActivityCreateDto()
|
||||
if include_optional:
|
||||
return ActivityCreateDto(
|
||||
album_id = '',
|
||||
asset_id = '',
|
||||
album_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
asset_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
comment = '',
|
||||
type = 'comment'
|
||||
)
|
||||
else:
|
||||
return ActivityCreateDto(
|
||||
album_id = '',
|
||||
album_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
type = 'comment',
|
||||
)
|
||||
"""
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -35,29 +35,29 @@ class TestActivityResponseDto(unittest.TestCase):
|
||||
model = ActivityResponseDto()
|
||||
if include_optional:
|
||||
return ActivityResponseDto(
|
||||
asset_id = '',
|
||||
asset_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
comment = '',
|
||||
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
id = '',
|
||||
created_at = '2024-01-01T00:00Z',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
type = 'comment',
|
||||
user = generated.immich.openapi_client.models.user_response_dto.UserResponseDto(
|
||||
avatar_color = null,
|
||||
email = '',
|
||||
id = '',
|
||||
avatar_color = 'primary',
|
||||
email = 'o@u.C.aZuufUOHOEhA8IcFQXnuaZcdyyvKX7HzKpul80FcVjSkp5IHYCm6w-v0dZfF.7.MRjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohE.q-ziKqEde8fXg9wdpfxa2-zRiT.EU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9RmauZ.J.mRsCjOv6MeuvKGSDRGKUIQ8yNXhf.VbZpGptfI46.5.z.6-kwy.icMEEkIauY.eNaDi5ackLH.3.z-zmvqRnM-dar09VaHCQz0Tl8.D.rml4PJXMbVMO8G0e5q9Z4WMWovY63Gk6ixTd5NxRU25mQYd6VBLRK.Q.6-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2ymMVYtu.F.DOyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-cV.d.Y649MeAEDz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPR.5.JnotMPK4Aqhv7VjToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPP',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
name = '',
|
||||
profile_changed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
profile_image_path = '', )
|
||||
)
|
||||
else:
|
||||
return ActivityResponseDto(
|
||||
asset_id = '',
|
||||
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
id = '',
|
||||
asset_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
created_at = '2024-01-01T00:00Z',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
type = 'comment',
|
||||
user = generated.immich.openapi_client.models.user_response_dto.UserResponseDto(
|
||||
avatar_color = null,
|
||||
email = '',
|
||||
id = '',
|
||||
avatar_color = 'primary',
|
||||
email = 'o@u.C.aZuufUOHOEhA8IcFQXnuaZcdyyvKX7HzKpul80FcVjSkp5IHYCm6w-v0dZfF.7.MRjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohE.q-ziKqEde8fXg9wdpfxa2-zRiT.EU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9RmauZ.J.mRsCjOv6MeuvKGSDRGKUIQ8yNXhf.VbZpGptfI46.5.z.6-kwy.icMEEkIauY.eNaDi5ackLH.3.z-zmvqRnM-dar09VaHCQz0Tl8.D.rml4PJXMbVMO8G0e5q9Z4WMWovY63Gk6ixTd5NxRU25mQYd6VBLRK.Q.6-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2ymMVYtu.F.DOyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-cV.d.Y649MeAEDz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPR.5.JnotMPK4Aqhv7VjToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPP',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
name = '',
|
||||
profile_changed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
profile_image_path = '', ),
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -35,11 +35,13 @@ class TestActivityStatisticsResponseDto(unittest.TestCase):
|
||||
model = ActivityStatisticsResponseDto()
|
||||
if include_optional:
|
||||
return ActivityStatisticsResponseDto(
|
||||
comments = 56
|
||||
comments = 0,
|
||||
likes = 0
|
||||
)
|
||||
else:
|
||||
return ActivityStatisticsResponseDto(
|
||||
comments = 56,
|
||||
comments = 0,
|
||||
likes = 0,
|
||||
)
|
||||
"""
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -37,16 +37,16 @@ class TestAddUsersDto(unittest.TestCase):
|
||||
return AddUsersDto(
|
||||
album_users = [
|
||||
generated.immich.openapi_client.models.album_user_add_dto.AlbumUserAddDto(
|
||||
role = null,
|
||||
user_id = '', )
|
||||
role = 'editor',
|
||||
user_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC', )
|
||||
]
|
||||
)
|
||||
else:
|
||||
return AddUsersDto(
|
||||
album_users = [
|
||||
generated.immich.openapi_client.models.album_user_add_dto.AlbumUserAddDto(
|
||||
role = null,
|
||||
user_id = '', )
|
||||
role = 'editor',
|
||||
user_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC', )
|
||||
],
|
||||
)
|
||||
"""
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -36,136 +36,32 @@ class TestAlbumResponseDto(unittest.TestCase):
|
||||
if include_optional:
|
||||
return AlbumResponseDto(
|
||||
album_name = '',
|
||||
album_thumbnail_asset_id = '',
|
||||
album_thumbnail_asset_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
album_users = [
|
||||
generated.immich.openapi_client.models.album_user_response_dto.AlbumUserResponseDto(
|
||||
role = null,
|
||||
role = 'editor',
|
||||
user = generated.immich.openapi_client.models.user_response_dto.UserResponseDto(
|
||||
avatar_color = null,
|
||||
email = '',
|
||||
id = '',
|
||||
avatar_color = 'primary',
|
||||
email = 'o@u.C.aZuufUOHOEhA8IcFQXnuaZcdyyvKX7HzKpul80FcVjSkp5IHYCm6w-v0dZfF.7.MRjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohE.q-ziKqEde8fXg9wdpfxa2-zRiT.EU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9RmauZ.J.mRsCjOv6MeuvKGSDRGKUIQ8yNXhf.VbZpGptfI46.5.z.6-kwy.icMEEkIauY.eNaDi5ackLH.3.z-zmvqRnM-dar09VaHCQz0Tl8.D.rml4PJXMbVMO8G0e5q9Z4WMWovY63Gk6ixTd5NxRU25mQYd6VBLRK.Q.6-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2ymMVYtu.F.DOyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-cV.d.Y649MeAEDz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPR.5.JnotMPK4Aqhv7VjToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPP',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
name = '',
|
||||
profile_changed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
profile_image_path = '', ), )
|
||||
],
|
||||
asset_count = 56,
|
||||
assets = [
|
||||
generated.immich.openapi_client.models.asset_response_dto.AssetResponseDto(
|
||||
checksum = '',
|
||||
device_asset_id = '',
|
||||
device_id = '',
|
||||
duplicate_id = '',
|
||||
duration = '',
|
||||
exif_info = generated.immich.openapi_client.models.exif_response_dto.ExifResponseDto(
|
||||
city = '',
|
||||
country = '',
|
||||
date_time_original = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
description = '',
|
||||
exif_image_height = 1.337,
|
||||
exif_image_width = 1.337,
|
||||
exposure_time = '',
|
||||
f_number = 1.337,
|
||||
file_size_in_byte = 56,
|
||||
focal_length = 1.337,
|
||||
iso = 1.337,
|
||||
latitude = 1.337,
|
||||
lens_model = '',
|
||||
longitude = 1.337,
|
||||
make = '',
|
||||
model = '',
|
||||
modify_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
orientation = '',
|
||||
projection_type = '',
|
||||
rating = 1.337,
|
||||
state = '',
|
||||
time_zone = '', ),
|
||||
file_created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
file_modified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
has_metadata = True,
|
||||
id = '',
|
||||
is_archived = True,
|
||||
is_favorite = True,
|
||||
is_offline = True,
|
||||
is_trashed = True,
|
||||
library_id = '',
|
||||
live_photo_video_id = '',
|
||||
local_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
original_file_name = '',
|
||||
original_mime_type = '',
|
||||
original_path = '',
|
||||
owner = generated.immich.openapi_client.models.user_response_dto.UserResponseDto(
|
||||
avatar_color = null,
|
||||
email = '',
|
||||
id = '',
|
||||
name = '',
|
||||
profile_changed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
profile_image_path = '', ),
|
||||
owner_id = '',
|
||||
people = [
|
||||
generated.immich.openapi_client.models.person_with_faces_response_dto.PersonWithFacesResponseDto(
|
||||
birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
|
||||
color = '',
|
||||
faces = [
|
||||
generated.immich.openapi_client.models.asset_face_without_person_response_dto.AssetFaceWithoutPersonResponseDto(
|
||||
bounding_box_x1 = 56,
|
||||
bounding_box_x2 = 56,
|
||||
bounding_box_y1 = 56,
|
||||
bounding_box_y2 = 56,
|
||||
id = '',
|
||||
image_height = 56,
|
||||
image_width = 56,
|
||||
source_type = null, )
|
||||
],
|
||||
id = '',
|
||||
is_favorite = True,
|
||||
is_hidden = True,
|
||||
name = '',
|
||||
thumbnail_path = '',
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
|
||||
],
|
||||
resized = True,
|
||||
stack = null,
|
||||
tags = [
|
||||
generated.immich.openapi_client.models.tag_response_dto.TagResponseDto(
|
||||
color = '',
|
||||
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
id = '',
|
||||
name = '',
|
||||
parent_id = '',
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
value = '', )
|
||||
],
|
||||
thumbhash = '',
|
||||
type = null,
|
||||
unassigned_faces = [
|
||||
generated.immich.openapi_client.models.asset_face_without_person_response_dto.AssetFaceWithoutPersonResponseDto(
|
||||
bounding_box_x1 = 56,
|
||||
bounding_box_x2 = 56,
|
||||
bounding_box_y1 = 56,
|
||||
bounding_box_y2 = 56,
|
||||
id = '',
|
||||
image_height = 56,
|
||||
image_width = 56,
|
||||
source_type = null, )
|
||||
],
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
|
||||
asset_count = 0,
|
||||
contributor_counts = [
|
||||
generated.immich.openapi_client.models.contributor_count_response_dto.ContributorCountResponseDto(
|
||||
asset_count = 0,
|
||||
user_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC', )
|
||||
],
|
||||
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
description = '',
|
||||
end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
has_shared_link = True,
|
||||
id = '',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
is_activity_enabled = True,
|
||||
last_modified_asset_timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
order = 'asc',
|
||||
owner = generated.immich.openapi_client.models.user_response_dto.UserResponseDto(
|
||||
avatar_color = null,
|
||||
email = '',
|
||||
id = '',
|
||||
name = '',
|
||||
profile_changed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
profile_image_path = '', ),
|
||||
owner_id = '',
|
||||
shared = True,
|
||||
start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
|
||||
@@ -173,133 +69,24 @@ class TestAlbumResponseDto(unittest.TestCase):
|
||||
else:
|
||||
return AlbumResponseDto(
|
||||
album_name = '',
|
||||
album_thumbnail_asset_id = '',
|
||||
album_thumbnail_asset_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
album_users = [
|
||||
generated.immich.openapi_client.models.album_user_response_dto.AlbumUserResponseDto(
|
||||
role = null,
|
||||
role = 'editor',
|
||||
user = generated.immich.openapi_client.models.user_response_dto.UserResponseDto(
|
||||
avatar_color = null,
|
||||
email = '',
|
||||
id = '',
|
||||
avatar_color = 'primary',
|
||||
email = 'o@u.C.aZuufUOHOEhA8IcFQXnuaZcdyyvKX7HzKpul80FcVjSkp5IHYCm6w-v0dZfF.7.MRjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohE.q-ziKqEde8fXg9wdpfxa2-zRiT.EU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9RmauZ.J.mRsCjOv6MeuvKGSDRGKUIQ8yNXhf.VbZpGptfI46.5.z.6-kwy.icMEEkIauY.eNaDi5ackLH.3.z-zmvqRnM-dar09VaHCQz0Tl8.D.rml4PJXMbVMO8G0e5q9Z4WMWovY63Gk6ixTd5NxRU25mQYd6VBLRK.Q.6-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2ymMVYtu.F.DOyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-cV.d.Y649MeAEDz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPR.5.JnotMPK4Aqhv7VjToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPP',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
name = '',
|
||||
profile_changed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
profile_image_path = '', ), )
|
||||
],
|
||||
asset_count = 56,
|
||||
assets = [
|
||||
generated.immich.openapi_client.models.asset_response_dto.AssetResponseDto(
|
||||
checksum = '',
|
||||
device_asset_id = '',
|
||||
device_id = '',
|
||||
duplicate_id = '',
|
||||
duration = '',
|
||||
exif_info = generated.immich.openapi_client.models.exif_response_dto.ExifResponseDto(
|
||||
city = '',
|
||||
country = '',
|
||||
date_time_original = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
description = '',
|
||||
exif_image_height = 1.337,
|
||||
exif_image_width = 1.337,
|
||||
exposure_time = '',
|
||||
f_number = 1.337,
|
||||
file_size_in_byte = 56,
|
||||
focal_length = 1.337,
|
||||
iso = 1.337,
|
||||
latitude = 1.337,
|
||||
lens_model = '',
|
||||
longitude = 1.337,
|
||||
make = '',
|
||||
model = '',
|
||||
modify_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
orientation = '',
|
||||
projection_type = '',
|
||||
rating = 1.337,
|
||||
state = '',
|
||||
time_zone = '', ),
|
||||
file_created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
file_modified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
has_metadata = True,
|
||||
id = '',
|
||||
is_archived = True,
|
||||
is_favorite = True,
|
||||
is_offline = True,
|
||||
is_trashed = True,
|
||||
library_id = '',
|
||||
live_photo_video_id = '',
|
||||
local_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
original_file_name = '',
|
||||
original_mime_type = '',
|
||||
original_path = '',
|
||||
owner = generated.immich.openapi_client.models.user_response_dto.UserResponseDto(
|
||||
avatar_color = null,
|
||||
email = '',
|
||||
id = '',
|
||||
name = '',
|
||||
profile_changed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
profile_image_path = '', ),
|
||||
owner_id = '',
|
||||
people = [
|
||||
generated.immich.openapi_client.models.person_with_faces_response_dto.PersonWithFacesResponseDto(
|
||||
birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
|
||||
color = '',
|
||||
faces = [
|
||||
generated.immich.openapi_client.models.asset_face_without_person_response_dto.AssetFaceWithoutPersonResponseDto(
|
||||
bounding_box_x1 = 56,
|
||||
bounding_box_x2 = 56,
|
||||
bounding_box_y1 = 56,
|
||||
bounding_box_y2 = 56,
|
||||
id = '',
|
||||
image_height = 56,
|
||||
image_width = 56,
|
||||
source_type = null, )
|
||||
],
|
||||
id = '',
|
||||
is_favorite = True,
|
||||
is_hidden = True,
|
||||
name = '',
|
||||
thumbnail_path = '',
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
|
||||
],
|
||||
resized = True,
|
||||
stack = null,
|
||||
tags = [
|
||||
generated.immich.openapi_client.models.tag_response_dto.TagResponseDto(
|
||||
color = '',
|
||||
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
id = '',
|
||||
name = '',
|
||||
parent_id = '',
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
value = '', )
|
||||
],
|
||||
thumbhash = '',
|
||||
type = null,
|
||||
unassigned_faces = [
|
||||
generated.immich.openapi_client.models.asset_face_without_person_response_dto.AssetFaceWithoutPersonResponseDto(
|
||||
bounding_box_x1 = 56,
|
||||
bounding_box_x2 = 56,
|
||||
bounding_box_y1 = 56,
|
||||
bounding_box_y2 = 56,
|
||||
id = '',
|
||||
image_height = 56,
|
||||
image_width = 56,
|
||||
source_type = null, )
|
||||
],
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
|
||||
],
|
||||
asset_count = 0,
|
||||
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
description = '',
|
||||
has_shared_link = True,
|
||||
id = '',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
is_activity_enabled = True,
|
||||
owner = generated.immich.openapi_client.models.user_response_dto.UserResponseDto(
|
||||
avatar_color = null,
|
||||
email = '',
|
||||
id = '',
|
||||
name = '',
|
||||
profile_changed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
profile_image_path = '', ),
|
||||
owner_id = '',
|
||||
shared = True,
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -35,15 +35,15 @@ class TestAlbumStatisticsResponseDto(unittest.TestCase):
|
||||
model = AlbumStatisticsResponseDto()
|
||||
if include_optional:
|
||||
return AlbumStatisticsResponseDto(
|
||||
not_shared = 56,
|
||||
owned = 56,
|
||||
shared = 56
|
||||
not_shared = 0,
|
||||
owned = 0,
|
||||
shared = 0
|
||||
)
|
||||
else:
|
||||
return AlbumStatisticsResponseDto(
|
||||
not_shared = 56,
|
||||
owned = 56,
|
||||
shared = 56,
|
||||
not_shared = 0,
|
||||
owned = 0,
|
||||
shared = 0,
|
||||
)
|
||||
"""
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -36,11 +36,11 @@ class TestAlbumUserAddDto(unittest.TestCase):
|
||||
if include_optional:
|
||||
return AlbumUserAddDto(
|
||||
role = 'editor',
|
||||
user_id = ''
|
||||
user_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
)
|
||||
else:
|
||||
return AlbumUserAddDto(
|
||||
user_id = '',
|
||||
user_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
)
|
||||
"""
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -36,12 +36,12 @@ class TestAlbumUserCreateDto(unittest.TestCase):
|
||||
if include_optional:
|
||||
return AlbumUserCreateDto(
|
||||
role = 'editor',
|
||||
user_id = ''
|
||||
user_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
)
|
||||
else:
|
||||
return AlbumUserCreateDto(
|
||||
role = 'editor',
|
||||
user_id = '',
|
||||
user_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
)
|
||||
"""
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -37,9 +37,9 @@ class TestAlbumUserResponseDto(unittest.TestCase):
|
||||
return AlbumUserResponseDto(
|
||||
role = 'editor',
|
||||
user = generated.immich.openapi_client.models.user_response_dto.UserResponseDto(
|
||||
avatar_color = null,
|
||||
email = '',
|
||||
id = '',
|
||||
avatar_color = 'primary',
|
||||
email = 'o@u.C.aZuufUOHOEhA8IcFQXnuaZcdyyvKX7HzKpul80FcVjSkp5IHYCm6w-v0dZfF.7.MRjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohE.q-ziKqEde8fXg9wdpfxa2-zRiT.EU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9RmauZ.J.mRsCjOv6MeuvKGSDRGKUIQ8yNXhf.VbZpGptfI46.5.z.6-kwy.icMEEkIauY.eNaDi5ackLH.3.z-zmvqRnM-dar09VaHCQz0Tl8.D.rml4PJXMbVMO8G0e5q9Z4WMWovY63Gk6ixTd5NxRU25mQYd6VBLRK.Q.6-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2ymMVYtu.F.DOyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-cV.d.Y649MeAEDz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPR.5.JnotMPK4Aqhv7VjToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPP',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
name = '',
|
||||
profile_changed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
profile_image_path = '', )
|
||||
@@ -48,9 +48,9 @@ class TestAlbumUserResponseDto(unittest.TestCase):
|
||||
return AlbumUserResponseDto(
|
||||
role = 'editor',
|
||||
user = generated.immich.openapi_client.models.user_response_dto.UserResponseDto(
|
||||
avatar_color = null,
|
||||
email = '',
|
||||
id = '',
|
||||
avatar_color = 'primary',
|
||||
email = 'o@u.C.aZuufUOHOEhA8IcFQXnuaZcdyyvKX7HzKpul80FcVjSkp5IHYCm6w-v0dZfF.7.MRjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohE.q-ziKqEde8fXg9wdpfxa2-zRiT.EU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9RmauZ.J.mRsCjOv6MeuvKGSDRGKUIQ8yNXhf.VbZpGptfI46.5.z.6-kwy.icMEEkIauY.eNaDi5ackLH.3.z-zmvqRnM-dar09VaHCQz0Tl8.D.rml4PJXMbVMO8G0e5q9Z4WMWovY63Gk6ixTd5NxRU25mQYd6VBLRK.Q.6-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2ymMVYtu.F.DOyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-cV.d.Y649MeAEDz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPR.5.JnotMPK4Aqhv7VjToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPP',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
name = '',
|
||||
profile_changed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
profile_image_path = '', ),
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -29,66 +29,91 @@ class TestAlbumsApi(unittest.TestCase):
|
||||
def test_add_assets_to_album(self) -> None:
|
||||
"""Test case for add_assets_to_album
|
||||
|
||||
Add assets to an album
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_add_assets_to_albums(self) -> None:
|
||||
"""Test case for add_assets_to_albums
|
||||
|
||||
Add assets to albums
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_add_users_to_album(self) -> None:
|
||||
"""Test case for add_users_to_album
|
||||
|
||||
Share album with users
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_create_album(self) -> None:
|
||||
"""Test case for create_album
|
||||
|
||||
Create an album
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_delete_album(self) -> None:
|
||||
"""Test case for delete_album
|
||||
|
||||
Delete an album
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_album_info(self) -> None:
|
||||
"""Test case for get_album_info
|
||||
|
||||
Retrieve an album
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_album_map_markers(self) -> None:
|
||||
"""Test case for get_album_map_markers
|
||||
|
||||
Retrieve album map markers
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_album_statistics(self) -> None:
|
||||
"""Test case for get_album_statistics
|
||||
|
||||
Retrieve album statistics
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_all_albums(self) -> None:
|
||||
"""Test case for get_all_albums
|
||||
|
||||
List all albums
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_remove_asset_from_album(self) -> None:
|
||||
"""Test case for remove_asset_from_album
|
||||
|
||||
Remove assets from an album
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_remove_user_from_album(self) -> None:
|
||||
"""Test case for remove_user_from_album
|
||||
|
||||
Remove user from album
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_album_info(self) -> None:
|
||||
"""Test case for update_album_info
|
||||
|
||||
Update an album
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_album_user(self) -> None:
|
||||
"""Test case for update_album_user
|
||||
|
||||
Update user role
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@@ -1,380 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Immich
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.models.all_job_status_response_dto import AllJobStatusResponseDto
|
||||
|
||||
class TestAllJobStatusResponseDto(unittest.TestCase):
|
||||
"""AllJobStatusResponseDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> AllJobStatusResponseDto:
|
||||
"""Test AllJobStatusResponseDto
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `AllJobStatusResponseDto`
|
||||
"""
|
||||
model = AllJobStatusResponseDto()
|
||||
if include_optional:
|
||||
return AllJobStatusResponseDto(
|
||||
background_task = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
backup_database = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
duplicate_detection = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
face_detection = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
facial_recognition = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
library = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
metadata_extraction = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
migration = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
notifications = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
search = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
sidecar = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
smart_search = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
storage_template_migration = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
thumbnail_generation = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
video_conversion = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), )
|
||||
)
|
||||
else:
|
||||
return AllJobStatusResponseDto(
|
||||
background_task = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
backup_database = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
duplicate_detection = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
face_detection = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
facial_recognition = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
library = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
metadata_extraction = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
migration = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
notifications = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
search = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
sidecar = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
smart_search = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
storage_template_migration = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
thumbnail_generation = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
video_conversion = generated.immich.openapi_client.models.job_status_dto.JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ), ),
|
||||
)
|
||||
"""
|
||||
|
||||
def testAllJobStatusResponseDto(self):
|
||||
"""Test AllJobStatusResponseDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -14,10 +14,10 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.models.api_key_create_dto import APIKeyCreateDto
|
||||
from generated.immich.openapi_client.models.api_key_create_dto import ApiKeyCreateDto
|
||||
|
||||
class TestAPIKeyCreateDto(unittest.TestCase):
|
||||
"""APIKeyCreateDto unit test stubs"""
|
||||
class TestApiKeyCreateDto(unittest.TestCase):
|
||||
"""ApiKeyCreateDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
@@ -25,31 +25,31 @@ class TestAPIKeyCreateDto(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> APIKeyCreateDto:
|
||||
"""Test APIKeyCreateDto
|
||||
def make_instance(self, include_optional) -> ApiKeyCreateDto:
|
||||
"""Test ApiKeyCreateDto
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `APIKeyCreateDto`
|
||||
# uncomment below to create an instance of `ApiKeyCreateDto`
|
||||
"""
|
||||
model = APIKeyCreateDto()
|
||||
model = ApiKeyCreateDto()
|
||||
if include_optional:
|
||||
return APIKeyCreateDto(
|
||||
return ApiKeyCreateDto(
|
||||
name = '',
|
||||
permissions = [
|
||||
'all'
|
||||
]
|
||||
)
|
||||
else:
|
||||
return APIKeyCreateDto(
|
||||
return ApiKeyCreateDto(
|
||||
permissions = [
|
||||
'all'
|
||||
],
|
||||
)
|
||||
"""
|
||||
|
||||
def testAPIKeyCreateDto(self):
|
||||
"""Test APIKeyCreateDto"""
|
||||
def testApiKeyCreateDto(self):
|
||||
"""Test ApiKeyCreateDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -14,10 +14,10 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.models.api_key_create_response_dto import APIKeyCreateResponseDto
|
||||
from generated.immich.openapi_client.models.api_key_create_response_dto import ApiKeyCreateResponseDto
|
||||
|
||||
class TestAPIKeyCreateResponseDto(unittest.TestCase):
|
||||
"""APIKeyCreateResponseDto unit test stubs"""
|
||||
class TestApiKeyCreateResponseDto(unittest.TestCase):
|
||||
"""ApiKeyCreateResponseDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
@@ -25,42 +25,42 @@ class TestAPIKeyCreateResponseDto(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> APIKeyCreateResponseDto:
|
||||
"""Test APIKeyCreateResponseDto
|
||||
def make_instance(self, include_optional) -> ApiKeyCreateResponseDto:
|
||||
"""Test ApiKeyCreateResponseDto
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `APIKeyCreateResponseDto`
|
||||
# uncomment below to create an instance of `ApiKeyCreateResponseDto`
|
||||
"""
|
||||
model = APIKeyCreateResponseDto()
|
||||
model = ApiKeyCreateResponseDto()
|
||||
if include_optional:
|
||||
return APIKeyCreateResponseDto(
|
||||
api_key = generated.immich.openapi_client.models.api_key_response_dto.APIKeyResponseDto(
|
||||
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
id = '',
|
||||
return ApiKeyCreateResponseDto(
|
||||
api_key = generated.immich.openapi_client.models.api_key_response_dto.ApiKeyResponseDto(
|
||||
created_at = '2024-01-01T00:00Z',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
name = '',
|
||||
permissions = [
|
||||
'all'
|
||||
],
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),
|
||||
updated_at = '2024-01-01T00:00Z', ),
|
||||
secret = ''
|
||||
)
|
||||
else:
|
||||
return APIKeyCreateResponseDto(
|
||||
api_key = generated.immich.openapi_client.models.api_key_response_dto.APIKeyResponseDto(
|
||||
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
id = '',
|
||||
return ApiKeyCreateResponseDto(
|
||||
api_key = generated.immich.openapi_client.models.api_key_response_dto.ApiKeyResponseDto(
|
||||
created_at = '2024-01-01T00:00Z',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
name = '',
|
||||
permissions = [
|
||||
'all'
|
||||
],
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),
|
||||
updated_at = '2024-01-01T00:00Z', ),
|
||||
secret = '',
|
||||
)
|
||||
"""
|
||||
|
||||
def testAPIKeyCreateResponseDto(self):
|
||||
"""Test APIKeyCreateResponseDto"""
|
||||
def testApiKeyCreateResponseDto(self):
|
||||
"""Test ApiKeyCreateResponseDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -14,10 +14,10 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.models.api_key_response_dto import APIKeyResponseDto
|
||||
from generated.immich.openapi_client.models.api_key_response_dto import ApiKeyResponseDto
|
||||
|
||||
class TestAPIKeyResponseDto(unittest.TestCase):
|
||||
"""APIKeyResponseDto unit test stubs"""
|
||||
class TestApiKeyResponseDto(unittest.TestCase):
|
||||
"""ApiKeyResponseDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
@@ -25,38 +25,38 @@ class TestAPIKeyResponseDto(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> APIKeyResponseDto:
|
||||
"""Test APIKeyResponseDto
|
||||
def make_instance(self, include_optional) -> ApiKeyResponseDto:
|
||||
"""Test ApiKeyResponseDto
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `APIKeyResponseDto`
|
||||
# uncomment below to create an instance of `ApiKeyResponseDto`
|
||||
"""
|
||||
model = APIKeyResponseDto()
|
||||
model = ApiKeyResponseDto()
|
||||
if include_optional:
|
||||
return APIKeyResponseDto(
|
||||
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
id = '',
|
||||
return ApiKeyResponseDto(
|
||||
created_at = '2024-01-01T00:00Z',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
name = '',
|
||||
permissions = [
|
||||
'all'
|
||||
],
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
|
||||
updated_at = '2024-01-01T00:00Z'
|
||||
)
|
||||
else:
|
||||
return APIKeyResponseDto(
|
||||
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
id = '',
|
||||
return ApiKeyResponseDto(
|
||||
created_at = '2024-01-01T00:00Z',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
name = '',
|
||||
permissions = [
|
||||
'all'
|
||||
],
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
updated_at = '2024-01-01T00:00Z',
|
||||
)
|
||||
"""
|
||||
|
||||
def testAPIKeyResponseDto(self):
|
||||
"""Test APIKeyResponseDto"""
|
||||
def testApiKeyResponseDto(self):
|
||||
"""Test ApiKeyResponseDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -14,10 +14,10 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.models.api_key_update_dto import APIKeyUpdateDto
|
||||
from generated.immich.openapi_client.models.api_key_update_dto import ApiKeyUpdateDto
|
||||
|
||||
class TestAPIKeyUpdateDto(unittest.TestCase):
|
||||
"""APIKeyUpdateDto unit test stubs"""
|
||||
class TestApiKeyUpdateDto(unittest.TestCase):
|
||||
"""ApiKeyUpdateDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
@@ -25,26 +25,28 @@ class TestAPIKeyUpdateDto(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> APIKeyUpdateDto:
|
||||
"""Test APIKeyUpdateDto
|
||||
def make_instance(self, include_optional) -> ApiKeyUpdateDto:
|
||||
"""Test ApiKeyUpdateDto
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `APIKeyUpdateDto`
|
||||
# uncomment below to create an instance of `ApiKeyUpdateDto`
|
||||
"""
|
||||
model = APIKeyUpdateDto()
|
||||
model = ApiKeyUpdateDto()
|
||||
if include_optional:
|
||||
return APIKeyUpdateDto(
|
||||
name = ''
|
||||
return ApiKeyUpdateDto(
|
||||
name = '',
|
||||
permissions = [
|
||||
'all'
|
||||
]
|
||||
)
|
||||
else:
|
||||
return APIKeyUpdateDto(
|
||||
name = '',
|
||||
return ApiKeyUpdateDto(
|
||||
)
|
||||
"""
|
||||
|
||||
def testAPIKeyUpdateDto(self):
|
||||
"""Test APIKeyUpdateDto"""
|
||||
def testApiKeyUpdateDto(self):
|
||||
"""Test ApiKeyUpdateDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -29,30 +29,42 @@ class TestAPIKeysApi(unittest.TestCase):
|
||||
def test_create_api_key(self) -> None:
|
||||
"""Test case for create_api_key
|
||||
|
||||
Create an API key
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_delete_api_key(self) -> None:
|
||||
"""Test case for delete_api_key
|
||||
|
||||
Delete an API key
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_api_key(self) -> None:
|
||||
"""Test case for get_api_key
|
||||
|
||||
Retrieve an API key
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_api_keys(self) -> None:
|
||||
"""Test case for get_api_keys
|
||||
|
||||
List all API keys
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_my_api_key(self) -> None:
|
||||
"""Test case for get_my_api_key
|
||||
|
||||
Retrieve the current API key
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_api_key(self) -> None:
|
||||
"""Test case for update_api_key
|
||||
|
||||
Update an API key
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -37,13 +37,13 @@ class TestAssetBulkDeleteDto(unittest.TestCase):
|
||||
return AssetBulkDeleteDto(
|
||||
force = True,
|
||||
ids = [
|
||||
''
|
||||
'62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
]
|
||||
)
|
||||
else:
|
||||
return AssetBulkDeleteDto(
|
||||
ids = [
|
||||
''
|
||||
'62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
],
|
||||
)
|
||||
"""
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -36,20 +36,23 @@ class TestAssetBulkUpdateDto(unittest.TestCase):
|
||||
if include_optional:
|
||||
return AssetBulkUpdateDto(
|
||||
date_time_original = '',
|
||||
date_time_relative = -9007199254740991,
|
||||
description = '',
|
||||
duplicate_id = '',
|
||||
ids = [
|
||||
''
|
||||
'62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
],
|
||||
is_archived = True,
|
||||
is_favorite = True,
|
||||
latitude = 1.337,
|
||||
longitude = 1.337,
|
||||
rating = -1
|
||||
latitude = -90,
|
||||
longitude = -180,
|
||||
rating = -1,
|
||||
time_zone = '',
|
||||
visibility = 'archive'
|
||||
)
|
||||
else:
|
||||
return AssetBulkUpdateDto(
|
||||
ids = [
|
||||
''
|
||||
'62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
],
|
||||
)
|
||||
"""
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -38,7 +38,7 @@ class TestAssetBulkUploadCheckResponseDto(unittest.TestCase):
|
||||
results = [
|
||||
generated.immich.openapi_client.models.asset_bulk_upload_check_result.AssetBulkUploadCheckResult(
|
||||
action = 'accept',
|
||||
asset_id = '',
|
||||
asset_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
id = '',
|
||||
is_trashed = True,
|
||||
reason = 'duplicate', )
|
||||
@@ -49,7 +49,7 @@ class TestAssetBulkUploadCheckResponseDto(unittest.TestCase):
|
||||
results = [
|
||||
generated.immich.openapi_client.models.asset_bulk_upload_check_result.AssetBulkUploadCheckResult(
|
||||
action = 'accept',
|
||||
asset_id = '',
|
||||
asset_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
id = '',
|
||||
is_trashed = True,
|
||||
reason = 'duplicate', )
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -36,7 +36,7 @@ class TestAssetBulkUploadCheckResult(unittest.TestCase):
|
||||
if include_optional:
|
||||
return AssetBulkUploadCheckResult(
|
||||
action = 'accept',
|
||||
asset_id = '',
|
||||
asset_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
id = '',
|
||||
is_trashed = True,
|
||||
reason = 'duplicate'
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Immich
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.models.asset_delta_sync_dto import AssetDeltaSyncDto
|
||||
|
||||
class TestAssetDeltaSyncDto(unittest.TestCase):
|
||||
"""AssetDeltaSyncDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> AssetDeltaSyncDto:
|
||||
"""Test AssetDeltaSyncDto
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `AssetDeltaSyncDto`
|
||||
"""
|
||||
model = AssetDeltaSyncDto()
|
||||
if include_optional:
|
||||
return AssetDeltaSyncDto(
|
||||
updated_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
user_ids = [
|
||||
''
|
||||
]
|
||||
)
|
||||
else:
|
||||
return AssetDeltaSyncDto(
|
||||
updated_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
user_ids = [
|
||||
''
|
||||
],
|
||||
)
|
||||
"""
|
||||
|
||||
def testAssetDeltaSyncDto(self):
|
||||
"""Test AssetDeltaSyncDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -1,260 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Immich
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.models.asset_delta_sync_response_dto import AssetDeltaSyncResponseDto
|
||||
|
||||
class TestAssetDeltaSyncResponseDto(unittest.TestCase):
|
||||
"""AssetDeltaSyncResponseDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> AssetDeltaSyncResponseDto:
|
||||
"""Test AssetDeltaSyncResponseDto
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `AssetDeltaSyncResponseDto`
|
||||
"""
|
||||
model = AssetDeltaSyncResponseDto()
|
||||
if include_optional:
|
||||
return AssetDeltaSyncResponseDto(
|
||||
deleted = [
|
||||
''
|
||||
],
|
||||
needs_full_sync = True,
|
||||
upserted = [
|
||||
generated.immich.openapi_client.models.asset_response_dto.AssetResponseDto(
|
||||
checksum = '',
|
||||
device_asset_id = '',
|
||||
device_id = '',
|
||||
duplicate_id = '',
|
||||
duration = '',
|
||||
exif_info = generated.immich.openapi_client.models.exif_response_dto.ExifResponseDto(
|
||||
city = '',
|
||||
country = '',
|
||||
date_time_original = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
description = '',
|
||||
exif_image_height = 1.337,
|
||||
exif_image_width = 1.337,
|
||||
exposure_time = '',
|
||||
f_number = 1.337,
|
||||
file_size_in_byte = 56,
|
||||
focal_length = 1.337,
|
||||
iso = 1.337,
|
||||
latitude = 1.337,
|
||||
lens_model = '',
|
||||
longitude = 1.337,
|
||||
make = '',
|
||||
model = '',
|
||||
modify_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
orientation = '',
|
||||
projection_type = '',
|
||||
rating = 1.337,
|
||||
state = '',
|
||||
time_zone = '', ),
|
||||
file_created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
file_modified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
has_metadata = True,
|
||||
id = '',
|
||||
is_archived = True,
|
||||
is_favorite = True,
|
||||
is_offline = True,
|
||||
is_trashed = True,
|
||||
library_id = '',
|
||||
live_photo_video_id = '',
|
||||
local_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
original_file_name = '',
|
||||
original_mime_type = '',
|
||||
original_path = '',
|
||||
owner = generated.immich.openapi_client.models.user_response_dto.UserResponseDto(
|
||||
avatar_color = null,
|
||||
email = '',
|
||||
id = '',
|
||||
name = '',
|
||||
profile_changed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
profile_image_path = '', ),
|
||||
owner_id = '',
|
||||
people = [
|
||||
generated.immich.openapi_client.models.person_with_faces_response_dto.PersonWithFacesResponseDto(
|
||||
birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
|
||||
color = '',
|
||||
faces = [
|
||||
generated.immich.openapi_client.models.asset_face_without_person_response_dto.AssetFaceWithoutPersonResponseDto(
|
||||
bounding_box_x1 = 56,
|
||||
bounding_box_x2 = 56,
|
||||
bounding_box_y1 = 56,
|
||||
bounding_box_y2 = 56,
|
||||
id = '',
|
||||
image_height = 56,
|
||||
image_width = 56,
|
||||
source_type = null, )
|
||||
],
|
||||
id = '',
|
||||
is_favorite = True,
|
||||
is_hidden = True,
|
||||
name = '',
|
||||
thumbnail_path = '',
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
|
||||
],
|
||||
resized = True,
|
||||
stack = null,
|
||||
tags = [
|
||||
generated.immich.openapi_client.models.tag_response_dto.TagResponseDto(
|
||||
color = '',
|
||||
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
id = '',
|
||||
name = '',
|
||||
parent_id = '',
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
value = '', )
|
||||
],
|
||||
thumbhash = '',
|
||||
type = null,
|
||||
unassigned_faces = [
|
||||
generated.immich.openapi_client.models.asset_face_without_person_response_dto.AssetFaceWithoutPersonResponseDto(
|
||||
bounding_box_x1 = 56,
|
||||
bounding_box_x2 = 56,
|
||||
bounding_box_y1 = 56,
|
||||
bounding_box_y2 = 56,
|
||||
id = '',
|
||||
image_height = 56,
|
||||
image_width = 56,
|
||||
source_type = null, )
|
||||
],
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
|
||||
]
|
||||
)
|
||||
else:
|
||||
return AssetDeltaSyncResponseDto(
|
||||
deleted = [
|
||||
''
|
||||
],
|
||||
needs_full_sync = True,
|
||||
upserted = [
|
||||
generated.immich.openapi_client.models.asset_response_dto.AssetResponseDto(
|
||||
checksum = '',
|
||||
device_asset_id = '',
|
||||
device_id = '',
|
||||
duplicate_id = '',
|
||||
duration = '',
|
||||
exif_info = generated.immich.openapi_client.models.exif_response_dto.ExifResponseDto(
|
||||
city = '',
|
||||
country = '',
|
||||
date_time_original = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
description = '',
|
||||
exif_image_height = 1.337,
|
||||
exif_image_width = 1.337,
|
||||
exposure_time = '',
|
||||
f_number = 1.337,
|
||||
file_size_in_byte = 56,
|
||||
focal_length = 1.337,
|
||||
iso = 1.337,
|
||||
latitude = 1.337,
|
||||
lens_model = '',
|
||||
longitude = 1.337,
|
||||
make = '',
|
||||
model = '',
|
||||
modify_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
orientation = '',
|
||||
projection_type = '',
|
||||
rating = 1.337,
|
||||
state = '',
|
||||
time_zone = '', ),
|
||||
file_created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
file_modified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
has_metadata = True,
|
||||
id = '',
|
||||
is_archived = True,
|
||||
is_favorite = True,
|
||||
is_offline = True,
|
||||
is_trashed = True,
|
||||
library_id = '',
|
||||
live_photo_video_id = '',
|
||||
local_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
original_file_name = '',
|
||||
original_mime_type = '',
|
||||
original_path = '',
|
||||
owner = generated.immich.openapi_client.models.user_response_dto.UserResponseDto(
|
||||
avatar_color = null,
|
||||
email = '',
|
||||
id = '',
|
||||
name = '',
|
||||
profile_changed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
profile_image_path = '', ),
|
||||
owner_id = '',
|
||||
people = [
|
||||
generated.immich.openapi_client.models.person_with_faces_response_dto.PersonWithFacesResponseDto(
|
||||
birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
|
||||
color = '',
|
||||
faces = [
|
||||
generated.immich.openapi_client.models.asset_face_without_person_response_dto.AssetFaceWithoutPersonResponseDto(
|
||||
bounding_box_x1 = 56,
|
||||
bounding_box_x2 = 56,
|
||||
bounding_box_y1 = 56,
|
||||
bounding_box_y2 = 56,
|
||||
id = '',
|
||||
image_height = 56,
|
||||
image_width = 56,
|
||||
source_type = null, )
|
||||
],
|
||||
id = '',
|
||||
is_favorite = True,
|
||||
is_hidden = True,
|
||||
name = '',
|
||||
thumbnail_path = '',
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
|
||||
],
|
||||
resized = True,
|
||||
stack = null,
|
||||
tags = [
|
||||
generated.immich.openapi_client.models.tag_response_dto.TagResponseDto(
|
||||
color = '',
|
||||
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
id = '',
|
||||
name = '',
|
||||
parent_id = '',
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
value = '', )
|
||||
],
|
||||
thumbhash = '',
|
||||
type = null,
|
||||
unassigned_faces = [
|
||||
generated.immich.openapi_client.models.asset_face_without_person_response_dto.AssetFaceWithoutPersonResponseDto(
|
||||
bounding_box_x1 = 56,
|
||||
bounding_box_x2 = 56,
|
||||
bounding_box_y1 = 56,
|
||||
bounding_box_y2 = 56,
|
||||
id = '',
|
||||
image_height = 56,
|
||||
image_width = 56,
|
||||
source_type = null, )
|
||||
],
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
|
||||
],
|
||||
)
|
||||
"""
|
||||
|
||||
def testAssetDeltaSyncResponseDto(self):
|
||||
"""Test AssetDeltaSyncResponseDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -35,25 +35,25 @@ class TestAssetFaceCreateDto(unittest.TestCase):
|
||||
model = AssetFaceCreateDto()
|
||||
if include_optional:
|
||||
return AssetFaceCreateDto(
|
||||
asset_id = '',
|
||||
height = 56,
|
||||
image_height = 56,
|
||||
image_width = 56,
|
||||
person_id = '',
|
||||
width = 56,
|
||||
x = 56,
|
||||
y = 56
|
||||
asset_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
height = -9007199254740991,
|
||||
image_height = -9007199254740991,
|
||||
image_width = -9007199254740991,
|
||||
person_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
width = -9007199254740991,
|
||||
x = -9007199254740991,
|
||||
y = -9007199254740991
|
||||
)
|
||||
else:
|
||||
return AssetFaceCreateDto(
|
||||
asset_id = '',
|
||||
height = 56,
|
||||
image_height = 56,
|
||||
image_width = 56,
|
||||
person_id = '',
|
||||
width = 56,
|
||||
x = 56,
|
||||
y = 56,
|
||||
asset_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
height = -9007199254740991,
|
||||
image_height = -9007199254740991,
|
||||
image_width = -9007199254740991,
|
||||
person_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
width = -9007199254740991,
|
||||
x = -9007199254740991,
|
||||
y = -9007199254740991,
|
||||
)
|
||||
"""
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -35,17 +35,17 @@ class TestAssetFaceResponseDto(unittest.TestCase):
|
||||
model = AssetFaceResponseDto()
|
||||
if include_optional:
|
||||
return AssetFaceResponseDto(
|
||||
bounding_box_x1 = 56,
|
||||
bounding_box_x2 = 56,
|
||||
bounding_box_y1 = 56,
|
||||
bounding_box_y2 = 56,
|
||||
id = '',
|
||||
image_height = 56,
|
||||
image_width = 56,
|
||||
bounding_box_x1 = -9007199254740991,
|
||||
bounding_box_x2 = -9007199254740991,
|
||||
bounding_box_y1 = -9007199254740991,
|
||||
bounding_box_y2 = -9007199254740991,
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
image_height = 0,
|
||||
image_width = 0,
|
||||
person = generated.immich.openapi_client.models.person_response_dto.PersonResponseDto(
|
||||
birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
|
||||
color = '',
|
||||
id = '',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
is_favorite = True,
|
||||
is_hidden = True,
|
||||
name = '',
|
||||
@@ -55,17 +55,17 @@ class TestAssetFaceResponseDto(unittest.TestCase):
|
||||
)
|
||||
else:
|
||||
return AssetFaceResponseDto(
|
||||
bounding_box_x1 = 56,
|
||||
bounding_box_x2 = 56,
|
||||
bounding_box_y1 = 56,
|
||||
bounding_box_y2 = 56,
|
||||
id = '',
|
||||
image_height = 56,
|
||||
image_width = 56,
|
||||
bounding_box_x1 = -9007199254740991,
|
||||
bounding_box_x2 = -9007199254740991,
|
||||
bounding_box_y1 = -9007199254740991,
|
||||
bounding_box_y2 = -9007199254740991,
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
image_height = 0,
|
||||
image_width = 0,
|
||||
person = generated.immich.openapi_client.models.person_response_dto.PersonResponseDto(
|
||||
birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
|
||||
color = '',
|
||||
id = '',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
is_favorite = True,
|
||||
is_hidden = True,
|
||||
name = '',
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -37,16 +37,16 @@ class TestAssetFaceUpdateDto(unittest.TestCase):
|
||||
return AssetFaceUpdateDto(
|
||||
data = [
|
||||
generated.immich.openapi_client.models.asset_face_update_item.AssetFaceUpdateItem(
|
||||
asset_id = '',
|
||||
person_id = '', )
|
||||
asset_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
person_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC', )
|
||||
]
|
||||
)
|
||||
else:
|
||||
return AssetFaceUpdateDto(
|
||||
data = [
|
||||
generated.immich.openapi_client.models.asset_face_update_item.AssetFaceUpdateItem(
|
||||
asset_id = '',
|
||||
person_id = '', )
|
||||
asset_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
person_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC', )
|
||||
],
|
||||
)
|
||||
"""
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -35,13 +35,13 @@ class TestAssetFaceUpdateItem(unittest.TestCase):
|
||||
model = AssetFaceUpdateItem()
|
||||
if include_optional:
|
||||
return AssetFaceUpdateItem(
|
||||
asset_id = '',
|
||||
person_id = ''
|
||||
asset_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
person_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
)
|
||||
else:
|
||||
return AssetFaceUpdateItem(
|
||||
asset_id = '',
|
||||
person_id = '',
|
||||
asset_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
person_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
)
|
||||
"""
|
||||
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Immich
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.models.asset_face_without_person_response_dto import AssetFaceWithoutPersonResponseDto
|
||||
|
||||
class TestAssetFaceWithoutPersonResponseDto(unittest.TestCase):
|
||||
"""AssetFaceWithoutPersonResponseDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> AssetFaceWithoutPersonResponseDto:
|
||||
"""Test AssetFaceWithoutPersonResponseDto
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `AssetFaceWithoutPersonResponseDto`
|
||||
"""
|
||||
model = AssetFaceWithoutPersonResponseDto()
|
||||
if include_optional:
|
||||
return AssetFaceWithoutPersonResponseDto(
|
||||
bounding_box_x1 = 56,
|
||||
bounding_box_x2 = 56,
|
||||
bounding_box_y1 = 56,
|
||||
bounding_box_y2 = 56,
|
||||
id = '',
|
||||
image_height = 56,
|
||||
image_width = 56,
|
||||
source_type = 'machine-learning'
|
||||
)
|
||||
else:
|
||||
return AssetFaceWithoutPersonResponseDto(
|
||||
bounding_box_x1 = 56,
|
||||
bounding_box_x2 = 56,
|
||||
bounding_box_y1 = 56,
|
||||
bounding_box_y2 = 56,
|
||||
id = '',
|
||||
image_height = 56,
|
||||
image_width = 56,
|
||||
)
|
||||
"""
|
||||
|
||||
def testAssetFaceWithoutPersonResponseDto(self):
|
||||
"""Test AssetFaceWithoutPersonResponseDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -1,56 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Immich
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.models.asset_full_sync_dto import AssetFullSyncDto
|
||||
|
||||
class TestAssetFullSyncDto(unittest.TestCase):
|
||||
"""AssetFullSyncDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> AssetFullSyncDto:
|
||||
"""Test AssetFullSyncDto
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `AssetFullSyncDto`
|
||||
"""
|
||||
model = AssetFullSyncDto()
|
||||
if include_optional:
|
||||
return AssetFullSyncDto(
|
||||
last_id = '',
|
||||
limit = 1,
|
||||
updated_until = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
user_id = ''
|
||||
)
|
||||
else:
|
||||
return AssetFullSyncDto(
|
||||
limit = 1,
|
||||
updated_until = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
)
|
||||
"""
|
||||
|
||||
def testAssetFullSyncDto(self):
|
||||
"""Test AssetFullSyncDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -36,13 +36,13 @@ class TestAssetIdsDto(unittest.TestCase):
|
||||
if include_optional:
|
||||
return AssetIdsDto(
|
||||
asset_ids = [
|
||||
''
|
||||
'62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
]
|
||||
)
|
||||
else:
|
||||
return AssetIdsDto(
|
||||
asset_ids = [
|
||||
''
|
||||
'62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
],
|
||||
)
|
||||
"""
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -35,13 +35,13 @@ class TestAssetIdsResponseDto(unittest.TestCase):
|
||||
model = AssetIdsResponseDto()
|
||||
if include_optional:
|
||||
return AssetIdsResponseDto(
|
||||
asset_id = '',
|
||||
asset_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
error = 'duplicate',
|
||||
success = True
|
||||
)
|
||||
else:
|
||||
return AssetIdsResponseDto(
|
||||
asset_id = '',
|
||||
asset_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
success = True,
|
||||
)
|
||||
"""
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -36,14 +36,14 @@ class TestAssetJobsDto(unittest.TestCase):
|
||||
if include_optional:
|
||||
return AssetJobsDto(
|
||||
asset_ids = [
|
||||
''
|
||||
'62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
],
|
||||
name = 'refresh-faces'
|
||||
)
|
||||
else:
|
||||
return AssetJobsDto(
|
||||
asset_ids = [
|
||||
''
|
||||
'62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
],
|
||||
name = 'refresh-faces',
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -35,12 +35,12 @@ class TestAssetMediaResponseDto(unittest.TestCase):
|
||||
model = AssetMediaResponseDto()
|
||||
if include_optional:
|
||||
return AssetMediaResponseDto(
|
||||
id = '',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
status = 'created'
|
||||
)
|
||||
else:
|
||||
return AssetMediaResponseDto(
|
||||
id = '',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
status = 'created',
|
||||
)
|
||||
"""
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -36,22 +36,21 @@ class TestAssetResponseDto(unittest.TestCase):
|
||||
if include_optional:
|
||||
return AssetResponseDto(
|
||||
checksum = '',
|
||||
device_asset_id = '',
|
||||
device_id = '',
|
||||
duplicate_id = '',
|
||||
duration = '',
|
||||
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
duplicate_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
duration = 0,
|
||||
exif_info = generated.immich.openapi_client.models.exif_response_dto.ExifResponseDto(
|
||||
city = '',
|
||||
country = '',
|
||||
date_time_original = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
description = '',
|
||||
exif_image_height = 1.337,
|
||||
exif_image_width = 1.337,
|
||||
exif_image_height = 0,
|
||||
exif_image_width = 0,
|
||||
exposure_time = '',
|
||||
f_number = 1.337,
|
||||
file_size_in_byte = 56,
|
||||
file_size_in_byte = 0,
|
||||
focal_length = 1.337,
|
||||
iso = 1.337,
|
||||
iso = -9007199254740991,
|
||||
latitude = 1.337,
|
||||
lens_model = '',
|
||||
longitude = 1.337,
|
||||
@@ -60,47 +59,38 @@ class TestAssetResponseDto(unittest.TestCase):
|
||||
modify_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
orientation = '',
|
||||
projection_type = '',
|
||||
rating = 1.337,
|
||||
rating = 1,
|
||||
state = '',
|
||||
time_zone = '', ),
|
||||
file_created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
file_modified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
has_metadata = True,
|
||||
id = '',
|
||||
height = 0,
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
is_archived = True,
|
||||
is_edited = True,
|
||||
is_favorite = True,
|
||||
is_offline = True,
|
||||
is_trashed = True,
|
||||
library_id = '',
|
||||
library_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
live_photo_video_id = '',
|
||||
local_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
original_file_name = '',
|
||||
original_mime_type = '',
|
||||
original_path = '',
|
||||
owner = generated.immich.openapi_client.models.user_response_dto.UserResponseDto(
|
||||
avatar_color = null,
|
||||
email = '',
|
||||
id = '',
|
||||
avatar_color = 'primary',
|
||||
email = 'o@u.C.aZuufUOHOEhA8IcFQXnuaZcdyyvKX7HzKpul80FcVjSkp5IHYCm6w-v0dZfF.7.MRjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohE.q-ziKqEde8fXg9wdpfxa2-zRiT.EU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9RmauZ.J.mRsCjOv6MeuvKGSDRGKUIQ8yNXhf.VbZpGptfI46.5.z.6-kwy.icMEEkIauY.eNaDi5ackLH.3.z-zmvqRnM-dar09VaHCQz0Tl8.D.rml4PJXMbVMO8G0e5q9Z4WMWovY63Gk6ixTd5NxRU25mQYd6VBLRK.Q.6-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2ymMVYtu.F.DOyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-cV.d.Y649MeAEDz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPR.5.JnotMPK4Aqhv7VjToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPP',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
name = '',
|
||||
profile_changed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
profile_image_path = '', ),
|
||||
owner_id = '',
|
||||
owner_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
people = [
|
||||
generated.immich.openapi_client.models.person_with_faces_response_dto.PersonWithFacesResponseDto(
|
||||
generated.immich.openapi_client.models.person_response_dto.PersonResponseDto(
|
||||
birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
|
||||
color = '',
|
||||
faces = [
|
||||
generated.immich.openapi_client.models.asset_face_without_person_response_dto.AssetFaceWithoutPersonResponseDto(
|
||||
bounding_box_x1 = 56,
|
||||
bounding_box_x2 = 56,
|
||||
bounding_box_y1 = 56,
|
||||
bounding_box_y2 = 56,
|
||||
id = '',
|
||||
image_height = 56,
|
||||
image_width = 56,
|
||||
source_type = null, )
|
||||
],
|
||||
id = '',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
is_favorite = True,
|
||||
is_hidden = True,
|
||||
name = '',
|
||||
@@ -109,14 +99,14 @@ class TestAssetResponseDto(unittest.TestCase):
|
||||
],
|
||||
resized = True,
|
||||
stack = generated.immich.openapi_client.models.asset_stack_response_dto.AssetStackResponseDto(
|
||||
asset_count = 56,
|
||||
id = '',
|
||||
primary_asset_id = '', ),
|
||||
asset_count = 0,
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
primary_asset_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC', ),
|
||||
tags = [
|
||||
generated.immich.openapi_client.models.tag_response_dto.TagResponseDto(
|
||||
color = '',
|
||||
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
id = '',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
name = '',
|
||||
parent_id = '',
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
@@ -124,40 +114,34 @@ class TestAssetResponseDto(unittest.TestCase):
|
||||
],
|
||||
thumbhash = '',
|
||||
type = 'IMAGE',
|
||||
unassigned_faces = [
|
||||
generated.immich.openapi_client.models.asset_face_without_person_response_dto.AssetFaceWithoutPersonResponseDto(
|
||||
bounding_box_x1 = 56,
|
||||
bounding_box_x2 = 56,
|
||||
bounding_box_y1 = 56,
|
||||
bounding_box_y2 = 56,
|
||||
id = '',
|
||||
image_height = 56,
|
||||
image_width = 56,
|
||||
source_type = null, )
|
||||
],
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
visibility = 'archive',
|
||||
width = 0
|
||||
)
|
||||
else:
|
||||
return AssetResponseDto(
|
||||
checksum = '',
|
||||
device_asset_id = '',
|
||||
device_id = '',
|
||||
duration = '',
|
||||
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
duration = 0,
|
||||
file_created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
file_modified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
has_metadata = True,
|
||||
id = '',
|
||||
height = 0,
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
is_archived = True,
|
||||
is_edited = True,
|
||||
is_favorite = True,
|
||||
is_offline = True,
|
||||
is_trashed = True,
|
||||
local_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
original_file_name = '',
|
||||
original_path = '',
|
||||
owner_id = '',
|
||||
owner_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
thumbhash = '',
|
||||
type = 'IMAGE',
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
visibility = 'archive',
|
||||
width = 0,
|
||||
)
|
||||
"""
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -35,15 +35,15 @@ class TestAssetStackResponseDto(unittest.TestCase):
|
||||
model = AssetStackResponseDto()
|
||||
if include_optional:
|
||||
return AssetStackResponseDto(
|
||||
asset_count = 56,
|
||||
id = '',
|
||||
primary_asset_id = ''
|
||||
asset_count = 0,
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
primary_asset_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
)
|
||||
else:
|
||||
return AssetStackResponseDto(
|
||||
asset_count = 56,
|
||||
id = '',
|
||||
primary_asset_id = '',
|
||||
asset_count = 0,
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
primary_asset_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
)
|
||||
"""
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -35,15 +35,15 @@ class TestAssetStatsResponseDto(unittest.TestCase):
|
||||
model = AssetStatsResponseDto()
|
||||
if include_optional:
|
||||
return AssetStatsResponseDto(
|
||||
images = 56,
|
||||
total = 56,
|
||||
videos = 56
|
||||
images = -9007199254740991,
|
||||
total = -9007199254740991,
|
||||
videos = -9007199254740991
|
||||
)
|
||||
else:
|
||||
return AssetStatsResponseDto(
|
||||
images = 56,
|
||||
total = 56,
|
||||
videos = 56,
|
||||
images = -9007199254740991,
|
||||
total = -9007199254740991,
|
||||
videos = -9007199254740991,
|
||||
)
|
||||
"""
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -29,100 +29,182 @@ class TestAssetsApi(unittest.TestCase):
|
||||
def test_check_bulk_upload(self) -> None:
|
||||
"""Test case for check_bulk_upload
|
||||
|
||||
checkBulkUpload
|
||||
Check bulk upload
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_check_existing_assets(self) -> None:
|
||||
"""Test case for check_existing_assets
|
||||
def test_copy_asset(self) -> None:
|
||||
"""Test case for copy_asset
|
||||
|
||||
checkExistingAssets
|
||||
Copy asset
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_delete_asset_metadata(self) -> None:
|
||||
"""Test case for delete_asset_metadata
|
||||
|
||||
Delete asset metadata by key
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_delete_assets(self) -> None:
|
||||
"""Test case for delete_assets
|
||||
|
||||
Delete assets
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_delete_bulk_asset_metadata(self) -> None:
|
||||
"""Test case for delete_bulk_asset_metadata
|
||||
|
||||
Delete asset metadata
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_download_asset(self) -> None:
|
||||
"""Test case for download_asset
|
||||
|
||||
Download original asset
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_all_user_assets_by_device_id(self) -> None:
|
||||
"""Test case for get_all_user_assets_by_device_id
|
||||
def test_edit_asset(self) -> None:
|
||||
"""Test case for edit_asset
|
||||
|
||||
getAllUserAssetsByDeviceId
|
||||
Apply edits to an existing asset
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_end_session(self) -> None:
|
||||
"""Test case for end_session
|
||||
|
||||
End HLS streaming session
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_asset_edits(self) -> None:
|
||||
"""Test case for get_asset_edits
|
||||
|
||||
Retrieve edits for an existing asset
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_asset_info(self) -> None:
|
||||
"""Test case for get_asset_info
|
||||
|
||||
Retrieve an asset
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_asset_metadata(self) -> None:
|
||||
"""Test case for get_asset_metadata
|
||||
|
||||
Get asset metadata
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_asset_metadata_by_key(self) -> None:
|
||||
"""Test case for get_asset_metadata_by_key
|
||||
|
||||
Retrieve asset metadata by key
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_asset_ocr(self) -> None:
|
||||
"""Test case for get_asset_ocr
|
||||
|
||||
Retrieve asset OCR data
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_asset_statistics(self) -> None:
|
||||
"""Test case for get_asset_statistics
|
||||
|
||||
Get asset statistics
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_memory_lane(self) -> None:
|
||||
"""Test case for get_memory_lane
|
||||
def test_get_main_playlist(self) -> None:
|
||||
"""Test case for get_main_playlist
|
||||
|
||||
Get HLS main playlist
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_random(self) -> None:
|
||||
"""Test case for get_random
|
||||
def test_get_media_playlist(self) -> None:
|
||||
"""Test case for get_media_playlist
|
||||
|
||||
Get HLS media playlist
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_segment(self) -> None:
|
||||
"""Test case for get_segment
|
||||
|
||||
Get HLS segment or init file
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_play_asset_video(self) -> None:
|
||||
"""Test case for play_asset_video
|
||||
|
||||
Play asset video
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_replace_asset(self) -> None:
|
||||
"""Test case for replace_asset
|
||||
def test_remove_asset_edits(self) -> None:
|
||||
"""Test case for remove_asset_edits
|
||||
|
||||
replaceAsset
|
||||
Remove edits from an existing asset
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_run_asset_jobs(self) -> None:
|
||||
"""Test case for run_asset_jobs
|
||||
|
||||
Run an asset job
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_asset(self) -> None:
|
||||
"""Test case for update_asset
|
||||
|
||||
Update an asset
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_asset_metadata(self) -> None:
|
||||
"""Test case for update_asset_metadata
|
||||
|
||||
Update asset metadata
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_assets(self) -> None:
|
||||
"""Test case for update_assets
|
||||
|
||||
Update assets
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_bulk_asset_metadata(self) -> None:
|
||||
"""Test case for update_bulk_asset_metadata
|
||||
|
||||
Upsert asset metadata
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_upload_asset(self) -> None:
|
||||
"""Test case for upload_asset
|
||||
|
||||
Upload asset
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_view_asset(self) -> None:
|
||||
"""Test case for view_asset
|
||||
|
||||
View asset thumbnail
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -29,30 +29,119 @@ class TestAuthenticationApi(unittest.TestCase):
|
||||
def test_change_password(self) -> None:
|
||||
"""Test case for change_password
|
||||
|
||||
Change password
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_change_pin_code(self) -> None:
|
||||
"""Test case for change_pin_code
|
||||
|
||||
Change pin code
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_finish_o_auth(self) -> None:
|
||||
"""Test case for finish_o_auth
|
||||
|
||||
Finish OAuth
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_auth_status(self) -> None:
|
||||
"""Test case for get_auth_status
|
||||
|
||||
Retrieve auth status
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_link_o_auth_account(self) -> None:
|
||||
"""Test case for link_o_auth_account
|
||||
|
||||
Link OAuth account
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_lock_auth_session(self) -> None:
|
||||
"""Test case for lock_auth_session
|
||||
|
||||
Lock auth session
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_login(self) -> None:
|
||||
"""Test case for login
|
||||
|
||||
Login
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_logout(self) -> None:
|
||||
"""Test case for logout
|
||||
|
||||
Logout
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_logout_o_auth(self) -> None:
|
||||
"""Test case for logout_o_auth
|
||||
|
||||
Backchannel OAuth logout
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_redirect_o_auth_to_mobile(self) -> None:
|
||||
"""Test case for redirect_o_auth_to_mobile
|
||||
|
||||
Redirect OAuth to mobile
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_reset_pin_code(self) -> None:
|
||||
"""Test case for reset_pin_code
|
||||
|
||||
Reset pin code
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_setup_pin_code(self) -> None:
|
||||
"""Test case for setup_pin_code
|
||||
|
||||
Setup pin code
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_sign_up_admin(self) -> None:
|
||||
"""Test case for sign_up_admin
|
||||
|
||||
Register admin
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_start_o_auth(self) -> None:
|
||||
"""Test case for start_o_auth
|
||||
|
||||
Start OAuth
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_unlink_o_auth_account(self) -> None:
|
||||
"""Test case for unlink_o_auth_account
|
||||
|
||||
Unlink OAuth account
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_unlock_auth_session(self) -> None:
|
||||
"""Test case for unlock_auth_session
|
||||
|
||||
Unlock auth session
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_validate_access_token(self) -> None:
|
||||
"""Test case for validate_access_token
|
||||
|
||||
Validate access token
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Immich
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.models.avatar_response import AvatarResponse
|
||||
|
||||
class TestAvatarResponse(unittest.TestCase):
|
||||
"""AvatarResponse unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> AvatarResponse:
|
||||
"""Test AvatarResponse
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `AvatarResponse`
|
||||
"""
|
||||
model = AvatarResponse()
|
||||
if include_optional:
|
||||
return AvatarResponse(
|
||||
color = 'primary'
|
||||
)
|
||||
else:
|
||||
return AvatarResponse(
|
||||
color = 'primary',
|
||||
)
|
||||
"""
|
||||
|
||||
def testAvatarResponse(self):
|
||||
"""Test AvatarResponse"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -36,12 +36,13 @@ class TestBulkIdResponseDto(unittest.TestCase):
|
||||
if include_optional:
|
||||
return BulkIdResponseDto(
|
||||
error = 'duplicate',
|
||||
id = '',
|
||||
error_message = '',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
success = True
|
||||
)
|
||||
else:
|
||||
return BulkIdResponseDto(
|
||||
id = '',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
success = True,
|
||||
)
|
||||
"""
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -36,13 +36,13 @@ class TestBulkIdsDto(unittest.TestCase):
|
||||
if include_optional:
|
||||
return BulkIdsDto(
|
||||
ids = [
|
||||
''
|
||||
'62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
]
|
||||
)
|
||||
else:
|
||||
return BulkIdsDto(
|
||||
ids = [
|
||||
''
|
||||
'62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
],
|
||||
)
|
||||
"""
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -35,6 +35,7 @@ class TestChangePasswordDto(unittest.TestCase):
|
||||
model = ChangePasswordDto()
|
||||
if include_optional:
|
||||
return ChangePasswordDto(
|
||||
invalidate_sessions = True,
|
||||
new_password = 'password',
|
||||
password = 'password'
|
||||
)
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Immich
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.models.check_existing_assets_dto import CheckExistingAssetsDto
|
||||
|
||||
class TestCheckExistingAssetsDto(unittest.TestCase):
|
||||
"""CheckExistingAssetsDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> CheckExistingAssetsDto:
|
||||
"""Test CheckExistingAssetsDto
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `CheckExistingAssetsDto`
|
||||
"""
|
||||
model = CheckExistingAssetsDto()
|
||||
if include_optional:
|
||||
return CheckExistingAssetsDto(
|
||||
device_asset_ids = [
|
||||
''
|
||||
],
|
||||
device_id = ''
|
||||
)
|
||||
else:
|
||||
return CheckExistingAssetsDto(
|
||||
device_asset_ids = [
|
||||
''
|
||||
],
|
||||
device_id = '',
|
||||
)
|
||||
"""
|
||||
|
||||
def testCheckExistingAssetsDto(self):
|
||||
"""Test CheckExistingAssetsDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -1,56 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Immich
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.models.check_existing_assets_response_dto import CheckExistingAssetsResponseDto
|
||||
|
||||
class TestCheckExistingAssetsResponseDto(unittest.TestCase):
|
||||
"""CheckExistingAssetsResponseDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> CheckExistingAssetsResponseDto:
|
||||
"""Test CheckExistingAssetsResponseDto
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `CheckExistingAssetsResponseDto`
|
||||
"""
|
||||
model = CheckExistingAssetsResponseDto()
|
||||
if include_optional:
|
||||
return CheckExistingAssetsResponseDto(
|
||||
existing_ids = [
|
||||
''
|
||||
]
|
||||
)
|
||||
else:
|
||||
return CheckExistingAssetsResponseDto(
|
||||
existing_ids = [
|
||||
''
|
||||
],
|
||||
)
|
||||
"""
|
||||
|
||||
def testCheckExistingAssetsResponseDto(self):
|
||||
"""Test CheckExistingAssetsResponseDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -38,11 +38,11 @@ class TestCreateAlbumDto(unittest.TestCase):
|
||||
album_name = '',
|
||||
album_users = [
|
||||
generated.immich.openapi_client.models.album_user_create_dto.AlbumUserCreateDto(
|
||||
role = null,
|
||||
user_id = '', )
|
||||
role = 'editor',
|
||||
user_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC', )
|
||||
],
|
||||
asset_ids = [
|
||||
''
|
||||
'62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
],
|
||||
description = ''
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -41,12 +41,12 @@ class TestCreateLibraryDto(unittest.TestCase):
|
||||
import_paths = [
|
||||
''
|
||||
],
|
||||
name = '',
|
||||
owner_id = ''
|
||||
name = '0',
|
||||
owner_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
)
|
||||
else:
|
||||
return CreateLibraryDto(
|
||||
owner_id = '',
|
||||
owner_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
)
|
||||
"""
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -35,15 +35,15 @@ class TestCreateProfileImageResponseDto(unittest.TestCase):
|
||||
model = CreateProfileImageResponseDto()
|
||||
if include_optional:
|
||||
return CreateProfileImageResponseDto(
|
||||
profile_changed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
profile_changed_at = '2024-01-01T00:00Z',
|
||||
profile_image_path = '',
|
||||
user_id = ''
|
||||
user_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
)
|
||||
else:
|
||||
return CreateProfileImageResponseDto(
|
||||
profile_changed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
profile_changed_at = '2024-01-01T00:00Z',
|
||||
profile_image_path = '',
|
||||
user_id = '',
|
||||
user_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
)
|
||||
"""
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -26,9 +26,122 @@ class TestDeprecatedApi(unittest.TestCase):
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_get_random(self) -> None:
|
||||
"""Test case for get_random
|
||||
def test_create_partner_deprecated(self) -> None:
|
||||
"""Test case for create_partner_deprecated
|
||||
|
||||
Create a partner
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_queues_legacy(self) -> None:
|
||||
"""Test case for get_queues_legacy
|
||||
|
||||
Retrieve queue counts and status
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_run_queue_command_legacy(self) -> None:
|
||||
"""Test case for run_queue_command_legacy
|
||||
|
||||
Run jobs
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_api_key(self) -> None:
|
||||
"""Test case for update_api_key
|
||||
|
||||
Update an API key
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_asset(self) -> None:
|
||||
"""Test case for update_asset
|
||||
|
||||
Update an asset
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_assets(self) -> None:
|
||||
"""Test case for update_assets
|
||||
|
||||
Update assets
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_library(self) -> None:
|
||||
"""Test case for update_library
|
||||
|
||||
Update a library
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_memory(self) -> None:
|
||||
"""Test case for update_memory
|
||||
|
||||
Update a memory
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_my_preferences(self) -> None:
|
||||
"""Test case for update_my_preferences
|
||||
|
||||
Update my preferences
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_my_user(self) -> None:
|
||||
"""Test case for update_my_user
|
||||
|
||||
Update current user
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_person(self) -> None:
|
||||
"""Test case for update_person
|
||||
|
||||
Update person
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_session(self) -> None:
|
||||
"""Test case for update_session
|
||||
|
||||
Update a session
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_stack(self) -> None:
|
||||
"""Test case for update_stack
|
||||
|
||||
Update a stack
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_tag(self) -> None:
|
||||
"""Test case for update_tag
|
||||
|
||||
Update a tag
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_user_admin(self) -> None:
|
||||
"""Test case for update_user_admin
|
||||
|
||||
Update a user
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_user_preferences_admin(self) -> None:
|
||||
"""Test case for update_user_preferences_admin
|
||||
|
||||
Update user preferences
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_workflow(self) -> None:
|
||||
"""Test case for update_workflow
|
||||
|
||||
Update a workflow
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -29,12 +29,14 @@ class TestDownloadApi(unittest.TestCase):
|
||||
def test_download_archive(self) -> None:
|
||||
"""Test case for download_archive
|
||||
|
||||
Download asset archive
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_download_info(self) -> None:
|
||||
"""Test case for get_download_info
|
||||
|
||||
Retrieve download information
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -36,16 +36,16 @@ class TestDownloadArchiveInfo(unittest.TestCase):
|
||||
if include_optional:
|
||||
return DownloadArchiveInfo(
|
||||
asset_ids = [
|
||||
''
|
||||
'62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
],
|
||||
size = 56
|
||||
size = -9007199254740991
|
||||
)
|
||||
else:
|
||||
return DownloadArchiveInfo(
|
||||
asset_ids = [
|
||||
''
|
||||
'62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
],
|
||||
size = 56,
|
||||
size = -9007199254740991,
|
||||
)
|
||||
"""
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -35,12 +35,12 @@ class TestDownloadInfoDto(unittest.TestCase):
|
||||
model = DownloadInfoDto()
|
||||
if include_optional:
|
||||
return DownloadInfoDto(
|
||||
album_id = '',
|
||||
album_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
archive_size = 1,
|
||||
asset_ids = [
|
||||
''
|
||||
'62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
],
|
||||
user_id = ''
|
||||
user_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
)
|
||||
else:
|
||||
return DownloadInfoDto(
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -35,12 +35,12 @@ class TestDownloadResponse(unittest.TestCase):
|
||||
model = DownloadResponse()
|
||||
if include_optional:
|
||||
return DownloadResponse(
|
||||
archive_size = 56,
|
||||
archive_size = -9007199254740991,
|
||||
include_embedded_videos = True
|
||||
)
|
||||
else:
|
||||
return DownloadResponse(
|
||||
archive_size = 56,
|
||||
archive_size = -9007199254740991,
|
||||
include_embedded_videos = True,
|
||||
)
|
||||
"""
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -38,22 +38,22 @@ class TestDownloadResponseDto(unittest.TestCase):
|
||||
archives = [
|
||||
generated.immich.openapi_client.models.download_archive_info.DownloadArchiveInfo(
|
||||
asset_ids = [
|
||||
''
|
||||
'62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
],
|
||||
size = 56, )
|
||||
size = -9007199254740991, )
|
||||
],
|
||||
total_size = 56
|
||||
total_size = -9007199254740991
|
||||
)
|
||||
else:
|
||||
return DownloadResponseDto(
|
||||
archives = [
|
||||
generated.immich.openapi_client.models.download_archive_info.DownloadArchiveInfo(
|
||||
asset_ids = [
|
||||
''
|
||||
'62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
],
|
||||
size = 56, )
|
||||
size = -9007199254740991, )
|
||||
],
|
||||
total_size = 56,
|
||||
total_size = -9007199254740991,
|
||||
)
|
||||
"""
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -38,22 +38,21 @@ class TestDuplicateResponseDto(unittest.TestCase):
|
||||
assets = [
|
||||
generated.immich.openapi_client.models.asset_response_dto.AssetResponseDto(
|
||||
checksum = '',
|
||||
device_asset_id = '',
|
||||
device_id = '',
|
||||
duplicate_id = '',
|
||||
duration = '',
|
||||
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
duplicate_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
duration = 0,
|
||||
exif_info = generated.immich.openapi_client.models.exif_response_dto.ExifResponseDto(
|
||||
city = '',
|
||||
country = '',
|
||||
date_time_original = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
description = '',
|
||||
exif_image_height = 1.337,
|
||||
exif_image_width = 1.337,
|
||||
exif_image_height = 0,
|
||||
exif_image_width = 0,
|
||||
exposure_time = '',
|
||||
f_number = 1.337,
|
||||
file_size_in_byte = 56,
|
||||
file_size_in_byte = 0,
|
||||
focal_length = 1.337,
|
||||
iso = 1.337,
|
||||
iso = -9007199254740991,
|
||||
latitude = 1.337,
|
||||
lens_model = '',
|
||||
longitude = 1.337,
|
||||
@@ -62,47 +61,38 @@ class TestDuplicateResponseDto(unittest.TestCase):
|
||||
modify_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
orientation = '',
|
||||
projection_type = '',
|
||||
rating = 1.337,
|
||||
rating = 1,
|
||||
state = '',
|
||||
time_zone = '', ),
|
||||
file_created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
file_modified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
has_metadata = True,
|
||||
id = '',
|
||||
height = 0,
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
is_archived = True,
|
||||
is_edited = True,
|
||||
is_favorite = True,
|
||||
is_offline = True,
|
||||
is_trashed = True,
|
||||
library_id = '',
|
||||
library_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
live_photo_video_id = '',
|
||||
local_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
original_file_name = '',
|
||||
original_mime_type = '',
|
||||
original_path = '',
|
||||
owner = generated.immich.openapi_client.models.user_response_dto.UserResponseDto(
|
||||
avatar_color = null,
|
||||
email = '',
|
||||
id = '',
|
||||
avatar_color = 'primary',
|
||||
email = 'o@u.C.aZuufUOHOEhA8IcFQXnuaZcdyyvKX7HzKpul80FcVjSkp5IHYCm6w-v0dZfF.7.MRjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohE.q-ziKqEde8fXg9wdpfxa2-zRiT.EU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9RmauZ.J.mRsCjOv6MeuvKGSDRGKUIQ8yNXhf.VbZpGptfI46.5.z.6-kwy.icMEEkIauY.eNaDi5ackLH.3.z-zmvqRnM-dar09VaHCQz0Tl8.D.rml4PJXMbVMO8G0e5q9Z4WMWovY63Gk6ixTd5NxRU25mQYd6VBLRK.Q.6-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2ymMVYtu.F.DOyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-cV.d.Y649MeAEDz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPR.5.JnotMPK4Aqhv7VjToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPP',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
name = '',
|
||||
profile_changed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
profile_image_path = '', ),
|
||||
owner_id = '',
|
||||
owner_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
people = [
|
||||
generated.immich.openapi_client.models.person_with_faces_response_dto.PersonWithFacesResponseDto(
|
||||
generated.immich.openapi_client.models.person_response_dto.PersonResponseDto(
|
||||
birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
|
||||
color = '',
|
||||
faces = [
|
||||
generated.immich.openapi_client.models.asset_face_without_person_response_dto.AssetFaceWithoutPersonResponseDto(
|
||||
bounding_box_x1 = 56,
|
||||
bounding_box_x2 = 56,
|
||||
bounding_box_y1 = 56,
|
||||
bounding_box_y2 = 56,
|
||||
id = '',
|
||||
image_height = 56,
|
||||
image_width = 56,
|
||||
source_type = null, )
|
||||
],
|
||||
id = '',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
is_favorite = True,
|
||||
is_hidden = True,
|
||||
name = '',
|
||||
@@ -115,50 +105,43 @@ class TestDuplicateResponseDto(unittest.TestCase):
|
||||
generated.immich.openapi_client.models.tag_response_dto.TagResponseDto(
|
||||
color = '',
|
||||
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
id = '',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
name = '',
|
||||
parent_id = '',
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
value = '', )
|
||||
],
|
||||
thumbhash = '',
|
||||
type = null,
|
||||
unassigned_faces = [
|
||||
generated.immich.openapi_client.models.asset_face_without_person_response_dto.AssetFaceWithoutPersonResponseDto(
|
||||
bounding_box_x1 = 56,
|
||||
bounding_box_x2 = 56,
|
||||
bounding_box_y1 = 56,
|
||||
bounding_box_y2 = 56,
|
||||
id = '',
|
||||
image_height = 56,
|
||||
image_width = 56,
|
||||
source_type = null, )
|
||||
],
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
|
||||
type = 'IMAGE',
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
visibility = 'archive',
|
||||
width = 0, )
|
||||
],
|
||||
duplicate_id = ''
|
||||
duplicate_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
suggested_keep_asset_ids = [
|
||||
'62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
]
|
||||
)
|
||||
else:
|
||||
return DuplicateResponseDto(
|
||||
assets = [
|
||||
generated.immich.openapi_client.models.asset_response_dto.AssetResponseDto(
|
||||
checksum = '',
|
||||
device_asset_id = '',
|
||||
device_id = '',
|
||||
duplicate_id = '',
|
||||
duration = '',
|
||||
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
duplicate_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
duration = 0,
|
||||
exif_info = generated.immich.openapi_client.models.exif_response_dto.ExifResponseDto(
|
||||
city = '',
|
||||
country = '',
|
||||
date_time_original = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
description = '',
|
||||
exif_image_height = 1.337,
|
||||
exif_image_width = 1.337,
|
||||
exif_image_height = 0,
|
||||
exif_image_width = 0,
|
||||
exposure_time = '',
|
||||
f_number = 1.337,
|
||||
file_size_in_byte = 56,
|
||||
file_size_in_byte = 0,
|
||||
focal_length = 1.337,
|
||||
iso = 1.337,
|
||||
iso = -9007199254740991,
|
||||
latitude = 1.337,
|
||||
lens_model = '',
|
||||
longitude = 1.337,
|
||||
@@ -167,47 +150,38 @@ class TestDuplicateResponseDto(unittest.TestCase):
|
||||
modify_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
orientation = '',
|
||||
projection_type = '',
|
||||
rating = 1.337,
|
||||
rating = 1,
|
||||
state = '',
|
||||
time_zone = '', ),
|
||||
file_created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
file_modified_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
has_metadata = True,
|
||||
id = '',
|
||||
height = 0,
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
is_archived = True,
|
||||
is_edited = True,
|
||||
is_favorite = True,
|
||||
is_offline = True,
|
||||
is_trashed = True,
|
||||
library_id = '',
|
||||
library_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
live_photo_video_id = '',
|
||||
local_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
original_file_name = '',
|
||||
original_mime_type = '',
|
||||
original_path = '',
|
||||
owner = generated.immich.openapi_client.models.user_response_dto.UserResponseDto(
|
||||
avatar_color = null,
|
||||
email = '',
|
||||
id = '',
|
||||
avatar_color = 'primary',
|
||||
email = 'o@u.C.aZuufUOHOEhA8IcFQXnuaZcdyyvKX7HzKpul80FcVjSkp5IHYCm6w-v0dZfF.7.MRjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohE.q-ziKqEde8fXg9wdpfxa2-zRiT.EU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9RmauZ.J.mRsCjOv6MeuvKGSDRGKUIQ8yNXhf.VbZpGptfI46.5.z.6-kwy.icMEEkIauY.eNaDi5ackLH.3.z-zmvqRnM-dar09VaHCQz0Tl8.D.rml4PJXMbVMO8G0e5q9Z4WMWovY63Gk6ixTd5NxRU25mQYd6VBLRK.Q.6-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2ymMVYtu.F.DOyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-cV.d.Y649MeAEDz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPR.5.JnotMPK4Aqhv7VjToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPP',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
name = '',
|
||||
profile_changed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
profile_image_path = '', ),
|
||||
owner_id = '',
|
||||
owner_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
people = [
|
||||
generated.immich.openapi_client.models.person_with_faces_response_dto.PersonWithFacesResponseDto(
|
||||
generated.immich.openapi_client.models.person_response_dto.PersonResponseDto(
|
||||
birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
|
||||
color = '',
|
||||
faces = [
|
||||
generated.immich.openapi_client.models.asset_face_without_person_response_dto.AssetFaceWithoutPersonResponseDto(
|
||||
bounding_box_x1 = 56,
|
||||
bounding_box_x2 = 56,
|
||||
bounding_box_y1 = 56,
|
||||
bounding_box_y2 = 56,
|
||||
id = '',
|
||||
image_height = 56,
|
||||
image_width = 56,
|
||||
source_type = null, )
|
||||
],
|
||||
id = '',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
is_favorite = True,
|
||||
is_hidden = True,
|
||||
name = '',
|
||||
@@ -220,28 +194,22 @@ class TestDuplicateResponseDto(unittest.TestCase):
|
||||
generated.immich.openapi_client.models.tag_response_dto.TagResponseDto(
|
||||
color = '',
|
||||
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
id = '',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
name = '',
|
||||
parent_id = '',
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
value = '', )
|
||||
],
|
||||
thumbhash = '',
|
||||
type = null,
|
||||
unassigned_faces = [
|
||||
generated.immich.openapi_client.models.asset_face_without_person_response_dto.AssetFaceWithoutPersonResponseDto(
|
||||
bounding_box_x1 = 56,
|
||||
bounding_box_x2 = 56,
|
||||
bounding_box_y1 = 56,
|
||||
bounding_box_y2 = 56,
|
||||
id = '',
|
||||
image_height = 56,
|
||||
image_width = 56,
|
||||
source_type = null, )
|
||||
],
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
|
||||
type = 'IMAGE',
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
visibility = 'archive',
|
||||
width = 0, )
|
||||
],
|
||||
duplicate_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
suggested_keep_asset_ids = [
|
||||
'62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
],
|
||||
duplicate_id = '',
|
||||
)
|
||||
"""
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -26,9 +26,31 @@ class TestDuplicatesApi(unittest.TestCase):
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_delete_duplicate(self) -> None:
|
||||
"""Test case for delete_duplicate
|
||||
|
||||
Dismiss a duplicate group
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_delete_duplicates(self) -> None:
|
||||
"""Test case for delete_duplicates
|
||||
|
||||
Delete duplicates
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_asset_duplicates(self) -> None:
|
||||
"""Test case for get_asset_duplicates
|
||||
|
||||
Retrieve duplicates
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_resolve_duplicates(self) -> None:
|
||||
"""Test case for resolve_duplicates
|
||||
|
||||
Resolve duplicate groups
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -39,13 +39,13 @@ class TestExifResponseDto(unittest.TestCase):
|
||||
country = '',
|
||||
date_time_original = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
description = '',
|
||||
exif_image_height = 1.337,
|
||||
exif_image_width = 1.337,
|
||||
exif_image_height = 0,
|
||||
exif_image_width = 0,
|
||||
exposure_time = '',
|
||||
f_number = 1.337,
|
||||
file_size_in_byte = 56,
|
||||
file_size_in_byte = 0,
|
||||
focal_length = 1.337,
|
||||
iso = 1.337,
|
||||
iso = -9007199254740991,
|
||||
latitude = 1.337,
|
||||
lens_model = '',
|
||||
longitude = 1.337,
|
||||
@@ -54,7 +54,7 @@ class TestExifResponseDto(unittest.TestCase):
|
||||
modify_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
orientation = '',
|
||||
projection_type = '',
|
||||
rating = 1.337,
|
||||
rating = 1,
|
||||
state = '',
|
||||
time_zone = ''
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -35,11 +35,11 @@ class TestFaceDto(unittest.TestCase):
|
||||
model = FaceDto()
|
||||
if include_optional:
|
||||
return FaceDto(
|
||||
id = ''
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC'
|
||||
)
|
||||
else:
|
||||
return FaceDto(
|
||||
id = '',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
)
|
||||
"""
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -29,24 +29,28 @@ class TestFacesApi(unittest.TestCase):
|
||||
def test_create_face(self) -> None:
|
||||
"""Test case for create_face
|
||||
|
||||
Create a face
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_delete_face(self) -> None:
|
||||
"""Test case for delete_face
|
||||
|
||||
Delete a face
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_faces(self) -> None:
|
||||
"""Test case for get_faces
|
||||
|
||||
Retrieve faces for asset
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_reassign_faces_by_id(self) -> None:
|
||||
"""Test case for reassign_faces_by_id
|
||||
|
||||
Re-assign a face to another person
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Immich
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.models.file_checksum_dto import FileChecksumDto
|
||||
|
||||
class TestFileChecksumDto(unittest.TestCase):
|
||||
"""FileChecksumDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> FileChecksumDto:
|
||||
"""Test FileChecksumDto
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `FileChecksumDto`
|
||||
"""
|
||||
model = FileChecksumDto()
|
||||
if include_optional:
|
||||
return FileChecksumDto(
|
||||
filenames = [
|
||||
''
|
||||
]
|
||||
)
|
||||
else:
|
||||
return FileChecksumDto(
|
||||
filenames = [
|
||||
''
|
||||
],
|
||||
)
|
||||
"""
|
||||
|
||||
def testFileChecksumDto(self):
|
||||
"""Test FileChecksumDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -1,54 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Immich
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.models.file_checksum_response_dto import FileChecksumResponseDto
|
||||
|
||||
class TestFileChecksumResponseDto(unittest.TestCase):
|
||||
"""FileChecksumResponseDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> FileChecksumResponseDto:
|
||||
"""Test FileChecksumResponseDto
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `FileChecksumResponseDto`
|
||||
"""
|
||||
model = FileChecksumResponseDto()
|
||||
if include_optional:
|
||||
return FileChecksumResponseDto(
|
||||
checksum = '',
|
||||
filename = ''
|
||||
)
|
||||
else:
|
||||
return FileChecksumResponseDto(
|
||||
checksum = '',
|
||||
filename = '',
|
||||
)
|
||||
"""
|
||||
|
||||
def testFileChecksumResponseDto(self):
|
||||
"""Test FileChecksumResponseDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -1,72 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Immich
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.models.file_report_dto import FileReportDto
|
||||
|
||||
class TestFileReportDto(unittest.TestCase):
|
||||
"""FileReportDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> FileReportDto:
|
||||
"""Test FileReportDto
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `FileReportDto`
|
||||
"""
|
||||
model = FileReportDto()
|
||||
if include_optional:
|
||||
return FileReportDto(
|
||||
extras = [
|
||||
''
|
||||
],
|
||||
orphans = [
|
||||
generated.immich.openapi_client.models.file_report_item_dto.FileReportItemDto(
|
||||
checksum = '',
|
||||
entity_id = '',
|
||||
entity_type = null,
|
||||
path_type = null,
|
||||
path_value = '', )
|
||||
]
|
||||
)
|
||||
else:
|
||||
return FileReportDto(
|
||||
extras = [
|
||||
''
|
||||
],
|
||||
orphans = [
|
||||
generated.immich.openapi_client.models.file_report_item_dto.FileReportItemDto(
|
||||
checksum = '',
|
||||
entity_id = '',
|
||||
entity_type = null,
|
||||
path_type = null,
|
||||
path_value = '', )
|
||||
],
|
||||
)
|
||||
"""
|
||||
|
||||
def testFileReportDto(self):
|
||||
"""Test FileReportDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -1,66 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Immich
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.models.file_report_fix_dto import FileReportFixDto
|
||||
|
||||
class TestFileReportFixDto(unittest.TestCase):
|
||||
"""FileReportFixDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> FileReportFixDto:
|
||||
"""Test FileReportFixDto
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `FileReportFixDto`
|
||||
"""
|
||||
model = FileReportFixDto()
|
||||
if include_optional:
|
||||
return FileReportFixDto(
|
||||
items = [
|
||||
generated.immich.openapi_client.models.file_report_item_dto.FileReportItemDto(
|
||||
checksum = '',
|
||||
entity_id = '',
|
||||
entity_type = null,
|
||||
path_type = null,
|
||||
path_value = '', )
|
||||
]
|
||||
)
|
||||
else:
|
||||
return FileReportFixDto(
|
||||
items = [
|
||||
generated.immich.openapi_client.models.file_report_item_dto.FileReportItemDto(
|
||||
checksum = '',
|
||||
entity_id = '',
|
||||
entity_type = null,
|
||||
path_type = null,
|
||||
path_value = '', )
|
||||
],
|
||||
)
|
||||
"""
|
||||
|
||||
def testFileReportFixDto(self):
|
||||
"""Test FileReportFixDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -1,59 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Immich
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.models.file_report_item_dto import FileReportItemDto
|
||||
|
||||
class TestFileReportItemDto(unittest.TestCase):
|
||||
"""FileReportItemDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> FileReportItemDto:
|
||||
"""Test FileReportItemDto
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `FileReportItemDto`
|
||||
"""
|
||||
model = FileReportItemDto()
|
||||
if include_optional:
|
||||
return FileReportItemDto(
|
||||
checksum = '',
|
||||
entity_id = '',
|
||||
entity_type = 'asset',
|
||||
path_type = 'original',
|
||||
path_value = ''
|
||||
)
|
||||
else:
|
||||
return FileReportItemDto(
|
||||
entity_id = '',
|
||||
entity_type = 'asset',
|
||||
path_type = 'original',
|
||||
path_value = '',
|
||||
)
|
||||
"""
|
||||
|
||||
def testFileReportItemDto(self):
|
||||
"""Test FileReportItemDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -1,49 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Immich
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.api.file_reports_api import FileReportsApi
|
||||
|
||||
|
||||
class TestFileReportsApi(unittest.TestCase):
|
||||
"""FileReportsApi unit test stubs"""
|
||||
|
||||
def setUp(self) -> None:
|
||||
self.api = FileReportsApi()
|
||||
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_fix_audit_files(self) -> None:
|
||||
"""Test case for fix_audit_files
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_audit_files(self) -> None:
|
||||
"""Test case for get_audit_files
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_file_checksums(self) -> None:
|
||||
"""Test case for get_file_checksums
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Immich
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.models.job_command import JobCommand
|
||||
|
||||
class TestJobCommand(unittest.TestCase):
|
||||
"""JobCommand unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testJobCommand(self):
|
||||
"""Test JobCommand"""
|
||||
# inst = JobCommand()
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -1,53 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Immich
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.models.job_command_dto import JobCommandDto
|
||||
|
||||
class TestJobCommandDto(unittest.TestCase):
|
||||
"""JobCommandDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> JobCommandDto:
|
||||
"""Test JobCommandDto
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `JobCommandDto`
|
||||
"""
|
||||
model = JobCommandDto()
|
||||
if include_optional:
|
||||
return JobCommandDto(
|
||||
command = 'start',
|
||||
force = True
|
||||
)
|
||||
else:
|
||||
return JobCommandDto(
|
||||
command = 'start',
|
||||
)
|
||||
"""
|
||||
|
||||
def testJobCommandDto(self):
|
||||
"""Test JobCommandDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -1,62 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Immich
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.models.job_counts_dto import JobCountsDto
|
||||
|
||||
class TestJobCountsDto(unittest.TestCase):
|
||||
"""JobCountsDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> JobCountsDto:
|
||||
"""Test JobCountsDto
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `JobCountsDto`
|
||||
"""
|
||||
model = JobCountsDto()
|
||||
if include_optional:
|
||||
return JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56
|
||||
)
|
||||
else:
|
||||
return JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56,
|
||||
)
|
||||
"""
|
||||
|
||||
def testJobCountsDto(self):
|
||||
"""Test JobCountsDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Immich
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from generated.immich.openapi_client.models.job_status_dto import JobStatusDto
|
||||
|
||||
class TestJobStatusDto(unittest.TestCase):
|
||||
"""JobStatusDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> JobStatusDto:
|
||||
"""Test JobStatusDto
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `JobStatusDto`
|
||||
"""
|
||||
model = JobStatusDto()
|
||||
if include_optional:
|
||||
return JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, )
|
||||
)
|
||||
else:
|
||||
return JobStatusDto(
|
||||
job_counts = generated.immich.openapi_client.models.job_counts_dto.JobCountsDto(
|
||||
active = 56,
|
||||
completed = 56,
|
||||
delayed = 56,
|
||||
failed = 56,
|
||||
paused = 56,
|
||||
waiting = 56, ),
|
||||
queue_status = generated.immich.openapi_client.models.queue_status_dto.QueueStatusDto(
|
||||
is_active = True,
|
||||
is_paused = True, ),
|
||||
)
|
||||
"""
|
||||
|
||||
def testJobStatusDto(self):
|
||||
"""Test JobStatusDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -29,18 +29,21 @@ class TestJobsApi(unittest.TestCase):
|
||||
def test_create_job(self) -> None:
|
||||
"""Test case for create_job
|
||||
|
||||
Create a manual job
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_all_jobs_status(self) -> None:
|
||||
"""Test case for get_all_jobs_status
|
||||
def test_get_queues_legacy(self) -> None:
|
||||
"""Test case for get_queues_legacy
|
||||
|
||||
Retrieve queue counts and status
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_send_job_command(self) -> None:
|
||||
"""Test case for send_job_command
|
||||
def test_run_queue_command_legacy(self) -> None:
|
||||
"""Test case for run_queue_command_legacy
|
||||
|
||||
Run jobs
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -29,48 +29,56 @@ class TestLibrariesApi(unittest.TestCase):
|
||||
def test_create_library(self) -> None:
|
||||
"""Test case for create_library
|
||||
|
||||
Create a library
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_delete_library(self) -> None:
|
||||
"""Test case for delete_library
|
||||
|
||||
Delete a library
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_all_libraries(self) -> None:
|
||||
"""Test case for get_all_libraries
|
||||
|
||||
Retrieve libraries
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_library(self) -> None:
|
||||
"""Test case for get_library
|
||||
|
||||
Retrieve a library
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_library_statistics(self) -> None:
|
||||
"""Test case for get_library_statistics
|
||||
|
||||
Retrieve library statistics
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_scan_library(self) -> None:
|
||||
"""Test case for scan_library
|
||||
|
||||
Scan a library
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_library(self) -> None:
|
||||
"""Test case for update_library
|
||||
|
||||
Update a library
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_validate(self) -> None:
|
||||
"""Test case for validate
|
||||
|
||||
Validate library settings
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -35,35 +35,35 @@ class TestLibraryResponseDto(unittest.TestCase):
|
||||
model = LibraryResponseDto()
|
||||
if include_optional:
|
||||
return LibraryResponseDto(
|
||||
asset_count = 56,
|
||||
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
asset_count = -9007199254740991,
|
||||
created_at = '2024-01-01T00:00Z',
|
||||
exclusion_patterns = [
|
||||
''
|
||||
],
|
||||
id = '',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
import_paths = [
|
||||
''
|
||||
],
|
||||
name = '',
|
||||
owner_id = '',
|
||||
refreshed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
|
||||
owner_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
refreshed_at = '2024-01-01T00:00Z',
|
||||
updated_at = '2024-01-01T00:00Z'
|
||||
)
|
||||
else:
|
||||
return LibraryResponseDto(
|
||||
asset_count = 56,
|
||||
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
asset_count = -9007199254740991,
|
||||
created_at = '2024-01-01T00:00Z',
|
||||
exclusion_patterns = [
|
||||
''
|
||||
],
|
||||
id = '',
|
||||
id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
import_paths = [
|
||||
''
|
||||
],
|
||||
name = '',
|
||||
owner_id = '',
|
||||
refreshed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
owner_id = '62ECB020-8429-430c-a01F-FCCfeEe150AC',
|
||||
refreshed_at = '2024-01-01T00:00Z',
|
||||
updated_at = '2024-01-01T00:00Z',
|
||||
)
|
||||
"""
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
@@ -35,17 +35,17 @@ class TestLibraryStatsResponseDto(unittest.TestCase):
|
||||
model = LibraryStatsResponseDto()
|
||||
if include_optional:
|
||||
return LibraryStatsResponseDto(
|
||||
photos = 56,
|
||||
total = 56,
|
||||
usage = 56,
|
||||
videos = 56
|
||||
photos = -9007199254740991,
|
||||
total = -9007199254740991,
|
||||
usage = -9007199254740991,
|
||||
videos = -9007199254740991
|
||||
)
|
||||
else:
|
||||
return LibraryStatsResponseDto(
|
||||
photos = 56,
|
||||
total = 56,
|
||||
usage = 56,
|
||||
videos = 56,
|
||||
photos = -9007199254740991,
|
||||
total = -9007199254740991,
|
||||
usage = -9007199254740991,
|
||||
videos = -9007199254740991,
|
||||
)
|
||||
"""
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Immich API
|
||||
|
||||
The version of the OpenAPI document: 1.131.3
|
||||
The version of the OpenAPI document: 3.0.1
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user