[TASK] Initial version, with some help from Junie. Copies all files in albums to the local filesystem.

This commit is contained in:
2025-04-19 18:05:53 +02:00
parent f5fed71def
commit 1e2e7dfb5a
865 changed files with 119341 additions and 2 deletions

View File

@@ -0,0 +1,55 @@
# 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.activities_api import ActivitiesApi
class TestActivitiesApi(unittest.TestCase):
"""ActivitiesApi unit test stubs"""
def setUp(self) -> None:
self.api = ActivitiesApi()
def tearDown(self) -> None:
pass
def test_create_activity(self) -> None:
"""Test case for create_activity
"""
pass
def test_delete_activity(self) -> None:
"""Test case for delete_activity
"""
pass
def test_get_activities(self) -> None:
"""Test case for get_activities
"""
pass
def test_get_activity_statistics(self) -> None:
"""Test case for get_activity_statistics
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,56 @@
# 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.activity_create_dto import ActivityCreateDto
class TestActivityCreateDto(unittest.TestCase):
"""ActivityCreateDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> ActivityCreateDto:
"""Test ActivityCreateDto
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 `ActivityCreateDto`
"""
model = ActivityCreateDto()
if include_optional:
return ActivityCreateDto(
album_id = '',
asset_id = '',
comment = '',
type = 'comment'
)
else:
return ActivityCreateDto(
album_id = '',
type = 'comment',
)
"""
def testActivityCreateDto(self):
"""Test ActivityCreateDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,73 @@
# 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.activity_response_dto import ActivityResponseDto
class TestActivityResponseDto(unittest.TestCase):
"""ActivityResponseDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> ActivityResponseDto:
"""Test ActivityResponseDto
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 `ActivityResponseDto`
"""
model = ActivityResponseDto()
if include_optional:
return ActivityResponseDto(
asset_id = '',
comment = '',
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
id = '',
type = 'comment',
user = 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 = '', )
)
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 = '',
type = 'comment',
user = 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 = '', ),
)
"""
def testActivityResponseDto(self):
"""Test ActivityResponseDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,52 @@
# 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.activity_statistics_response_dto import ActivityStatisticsResponseDto
class TestActivityStatisticsResponseDto(unittest.TestCase):
"""ActivityStatisticsResponseDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> ActivityStatisticsResponseDto:
"""Test ActivityStatisticsResponseDto
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 `ActivityStatisticsResponseDto`
"""
model = ActivityStatisticsResponseDto()
if include_optional:
return ActivityStatisticsResponseDto(
comments = 56
)
else:
return ActivityStatisticsResponseDto(
comments = 56,
)
"""
def testActivityStatisticsResponseDto(self):
"""Test ActivityStatisticsResponseDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,60 @@
# 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.add_users_dto import AddUsersDto
class TestAddUsersDto(unittest.TestCase):
"""AddUsersDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AddUsersDto:
"""Test AddUsersDto
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 `AddUsersDto`
"""
model = AddUsersDto()
if include_optional:
return AddUsersDto(
album_users = [
generated.immich.openapi_client.models.album_user_add_dto.AlbumUserAddDto(
role = null,
user_id = '', )
]
)
else:
return AddUsersDto(
album_users = [
generated.immich.openapi_client.models.album_user_add_dto.AlbumUserAddDto(
role = null,
user_id = '', )
],
)
"""
def testAddUsersDto(self):
"""Test AddUsersDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,52 @@
# 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.admin_onboarding_update_dto import AdminOnboardingUpdateDto
class TestAdminOnboardingUpdateDto(unittest.TestCase):
"""AdminOnboardingUpdateDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AdminOnboardingUpdateDto:
"""Test AdminOnboardingUpdateDto
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 `AdminOnboardingUpdateDto`
"""
model = AdminOnboardingUpdateDto()
if include_optional:
return AdminOnboardingUpdateDto(
is_onboarded = True
)
else:
return AdminOnboardingUpdateDto(
is_onboarded = True,
)
"""
def testAdminOnboardingUpdateDto(self):
"""Test AdminOnboardingUpdateDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,314 @@
# 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.album_response_dto import AlbumResponseDto
class TestAlbumResponseDto(unittest.TestCase):
"""AlbumResponseDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AlbumResponseDto:
"""Test AlbumResponseDto
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 `AlbumResponseDto`
"""
model = AlbumResponseDto()
if include_optional:
return AlbumResponseDto(
album_name = '',
album_thumbnail_asset_id = '',
album_users = [
generated.immich.openapi_client.models.album_user_response_dto.AlbumUserResponseDto(
role = null,
user = 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 = '', ), )
],
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'), )
],
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 = '',
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')
)
else:
return AlbumResponseDto(
album_name = '',
album_thumbnail_asset_id = '',
album_users = [
generated.immich.openapi_client.models.album_user_response_dto.AlbumUserResponseDto(
role = null,
user = 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 = '', ), )
],
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'), )
],
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 = '',
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'),
)
"""
def testAlbumResponseDto(self):
"""Test AlbumResponseDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,56 @@
# 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.album_statistics_response_dto import AlbumStatisticsResponseDto
class TestAlbumStatisticsResponseDto(unittest.TestCase):
"""AlbumStatisticsResponseDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AlbumStatisticsResponseDto:
"""Test AlbumStatisticsResponseDto
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 `AlbumStatisticsResponseDto`
"""
model = AlbumStatisticsResponseDto()
if include_optional:
return AlbumStatisticsResponseDto(
not_shared = 56,
owned = 56,
shared = 56
)
else:
return AlbumStatisticsResponseDto(
not_shared = 56,
owned = 56,
shared = 56,
)
"""
def testAlbumStatisticsResponseDto(self):
"""Test AlbumStatisticsResponseDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,53 @@
# 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.album_user_add_dto import AlbumUserAddDto
class TestAlbumUserAddDto(unittest.TestCase):
"""AlbumUserAddDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AlbumUserAddDto:
"""Test AlbumUserAddDto
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 `AlbumUserAddDto`
"""
model = AlbumUserAddDto()
if include_optional:
return AlbumUserAddDto(
role = 'editor',
user_id = ''
)
else:
return AlbumUserAddDto(
user_id = '',
)
"""
def testAlbumUserAddDto(self):
"""Test AlbumUserAddDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,54 @@
# 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.album_user_create_dto import AlbumUserCreateDto
class TestAlbumUserCreateDto(unittest.TestCase):
"""AlbumUserCreateDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AlbumUserCreateDto:
"""Test AlbumUserCreateDto
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 `AlbumUserCreateDto`
"""
model = AlbumUserCreateDto()
if include_optional:
return AlbumUserCreateDto(
role = 'editor',
user_id = ''
)
else:
return AlbumUserCreateDto(
role = 'editor',
user_id = '',
)
"""
def testAlbumUserCreateDto(self):
"""Test AlbumUserCreateDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,66 @@
# 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.album_user_response_dto import AlbumUserResponseDto
class TestAlbumUserResponseDto(unittest.TestCase):
"""AlbumUserResponseDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AlbumUserResponseDto:
"""Test AlbumUserResponseDto
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 `AlbumUserResponseDto`
"""
model = AlbumUserResponseDto()
if include_optional:
return AlbumUserResponseDto(
role = 'editor',
user = 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 = '', )
)
else:
return AlbumUserResponseDto(
role = 'editor',
user = 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 = '', ),
)
"""
def testAlbumUserResponseDto(self):
"""Test AlbumUserResponseDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,33 @@
# 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.album_user_role import AlbumUserRole
class TestAlbumUserRole(unittest.TestCase):
"""AlbumUserRole unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testAlbumUserRole(self):
"""Test AlbumUserRole"""
# inst = AlbumUserRole()
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,97 @@
# 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.albums_api import AlbumsApi
class TestAlbumsApi(unittest.TestCase):
"""AlbumsApi unit test stubs"""
def setUp(self) -> None:
self.api = AlbumsApi()
def tearDown(self) -> None:
pass
def test_add_assets_to_album(self) -> None:
"""Test case for add_assets_to_album
"""
pass
def test_add_users_to_album(self) -> None:
"""Test case for add_users_to_album
"""
pass
def test_create_album(self) -> None:
"""Test case for create_album
"""
pass
def test_delete_album(self) -> None:
"""Test case for delete_album
"""
pass
def test_get_album_info(self) -> None:
"""Test case for get_album_info
"""
pass
def test_get_album_statistics(self) -> None:
"""Test case for get_album_statistics
"""
pass
def test_get_all_albums(self) -> None:
"""Test case for get_all_albums
"""
pass
def test_remove_asset_from_album(self) -> None:
"""Test case for remove_asset_from_album
"""
pass
def test_remove_user_from_album(self) -> None:
"""Test case for remove_user_from_album
"""
pass
def test_update_album_info(self) -> None:
"""Test case for update_album_info
"""
pass
def test_update_album_user(self) -> None:
"""Test case for update_album_user
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,380 @@
# 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()

View File

@@ -0,0 +1,57 @@
# 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.api_key_create_dto import APIKeyCreateDto
class TestAPIKeyCreateDto(unittest.TestCase):
"""APIKeyCreateDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
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`
"""
model = APIKeyCreateDto()
if include_optional:
return APIKeyCreateDto(
name = '',
permissions = [
'all'
]
)
else:
return APIKeyCreateDto(
permissions = [
'all'
],
)
"""
def testAPIKeyCreateDto(self):
"""Test APIKeyCreateDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,68 @@
# 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.api_key_create_response_dto import APIKeyCreateResponseDto
class TestAPIKeyCreateResponseDto(unittest.TestCase):
"""APIKeyCreateResponseDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
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`
"""
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 = '',
name = '',
permissions = [
'all'
],
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),
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 = '',
name = '',
permissions = [
'all'
],
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),
secret = '',
)
"""
def testAPIKeyCreateResponseDto(self):
"""Test APIKeyCreateResponseDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,64 @@
# 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.api_key_response_dto import APIKeyResponseDto
class TestAPIKeyResponseDto(unittest.TestCase):
"""APIKeyResponseDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
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`
"""
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 = '',
name = '',
permissions = [
'all'
],
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
)
else:
return APIKeyResponseDto(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
id = '',
name = '',
permissions = [
'all'
],
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
)
"""
def testAPIKeyResponseDto(self):
"""Test APIKeyResponseDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,52 @@
# 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.api_key_update_dto import APIKeyUpdateDto
class TestAPIKeyUpdateDto(unittest.TestCase):
"""APIKeyUpdateDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
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`
"""
model = APIKeyUpdateDto()
if include_optional:
return APIKeyUpdateDto(
name = ''
)
else:
return APIKeyUpdateDto(
name = '',
)
"""
def testAPIKeyUpdateDto(self):
"""Test APIKeyUpdateDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,61 @@
# 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.api_keys_api import APIKeysApi
class TestAPIKeysApi(unittest.TestCase):
"""APIKeysApi unit test stubs"""
def setUp(self) -> None:
self.api = APIKeysApi()
def tearDown(self) -> None:
pass
def test_create_api_key(self) -> None:
"""Test case for create_api_key
"""
pass
def test_delete_api_key(self) -> None:
"""Test case for delete_api_key
"""
pass
def test_get_api_key(self) -> None:
"""Test case for get_api_key
"""
pass
def test_get_api_keys(self) -> None:
"""Test case for get_api_keys
"""
pass
def test_update_api_key(self) -> None:
"""Test case for update_api_key
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,57 @@
# 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_bulk_delete_dto import AssetBulkDeleteDto
class TestAssetBulkDeleteDto(unittest.TestCase):
"""AssetBulkDeleteDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AssetBulkDeleteDto:
"""Test AssetBulkDeleteDto
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 `AssetBulkDeleteDto`
"""
model = AssetBulkDeleteDto()
if include_optional:
return AssetBulkDeleteDto(
force = True,
ids = [
''
]
)
else:
return AssetBulkDeleteDto(
ids = [
''
],
)
"""
def testAssetBulkDeleteDto(self):
"""Test AssetBulkDeleteDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,63 @@
# 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_bulk_update_dto import AssetBulkUpdateDto
class TestAssetBulkUpdateDto(unittest.TestCase):
"""AssetBulkUpdateDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AssetBulkUpdateDto:
"""Test AssetBulkUpdateDto
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 `AssetBulkUpdateDto`
"""
model = AssetBulkUpdateDto()
if include_optional:
return AssetBulkUpdateDto(
date_time_original = '',
duplicate_id = '',
ids = [
''
],
is_archived = True,
is_favorite = True,
latitude = 1.337,
longitude = 1.337,
rating = -1
)
else:
return AssetBulkUpdateDto(
ids = [
''
],
)
"""
def testAssetBulkUpdateDto(self):
"""Test AssetBulkUpdateDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,60 @@
# 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_bulk_upload_check_dto import AssetBulkUploadCheckDto
class TestAssetBulkUploadCheckDto(unittest.TestCase):
"""AssetBulkUploadCheckDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AssetBulkUploadCheckDto:
"""Test AssetBulkUploadCheckDto
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 `AssetBulkUploadCheckDto`
"""
model = AssetBulkUploadCheckDto()
if include_optional:
return AssetBulkUploadCheckDto(
assets = [
generated.immich.openapi_client.models.asset_bulk_upload_check_item.AssetBulkUploadCheckItem(
checksum = '',
id = '', )
]
)
else:
return AssetBulkUploadCheckDto(
assets = [
generated.immich.openapi_client.models.asset_bulk_upload_check_item.AssetBulkUploadCheckItem(
checksum = '',
id = '', )
],
)
"""
def testAssetBulkUploadCheckDto(self):
"""Test AssetBulkUploadCheckDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,54 @@
# 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_bulk_upload_check_item import AssetBulkUploadCheckItem
class TestAssetBulkUploadCheckItem(unittest.TestCase):
"""AssetBulkUploadCheckItem unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AssetBulkUploadCheckItem:
"""Test AssetBulkUploadCheckItem
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 `AssetBulkUploadCheckItem`
"""
model = AssetBulkUploadCheckItem()
if include_optional:
return AssetBulkUploadCheckItem(
checksum = '',
id = ''
)
else:
return AssetBulkUploadCheckItem(
checksum = '',
id = '',
)
"""
def testAssetBulkUploadCheckItem(self):
"""Test AssetBulkUploadCheckItem"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,66 @@
# 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_bulk_upload_check_response_dto import AssetBulkUploadCheckResponseDto
class TestAssetBulkUploadCheckResponseDto(unittest.TestCase):
"""AssetBulkUploadCheckResponseDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AssetBulkUploadCheckResponseDto:
"""Test AssetBulkUploadCheckResponseDto
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 `AssetBulkUploadCheckResponseDto`
"""
model = AssetBulkUploadCheckResponseDto()
if include_optional:
return AssetBulkUploadCheckResponseDto(
results = [
generated.immich.openapi_client.models.asset_bulk_upload_check_result.AssetBulkUploadCheckResult(
action = 'accept',
asset_id = '',
id = '',
is_trashed = True,
reason = 'duplicate', )
]
)
else:
return AssetBulkUploadCheckResponseDto(
results = [
generated.immich.openapi_client.models.asset_bulk_upload_check_result.AssetBulkUploadCheckResult(
action = 'accept',
asset_id = '',
id = '',
is_trashed = True,
reason = 'duplicate', )
],
)
"""
def testAssetBulkUploadCheckResponseDto(self):
"""Test AssetBulkUploadCheckResponseDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,57 @@
# 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_bulk_upload_check_result import AssetBulkUploadCheckResult
class TestAssetBulkUploadCheckResult(unittest.TestCase):
"""AssetBulkUploadCheckResult unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AssetBulkUploadCheckResult:
"""Test AssetBulkUploadCheckResult
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 `AssetBulkUploadCheckResult`
"""
model = AssetBulkUploadCheckResult()
if include_optional:
return AssetBulkUploadCheckResult(
action = 'accept',
asset_id = '',
id = '',
is_trashed = True,
reason = 'duplicate'
)
else:
return AssetBulkUploadCheckResult(
action = 'accept',
id = '',
)
"""
def testAssetBulkUploadCheckResult(self):
"""Test AssetBulkUploadCheckResult"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,58 @@
# 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()

View File

@@ -0,0 +1,260 @@
# 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()

View File

@@ -0,0 +1,66 @@
# 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_create_dto import AssetFaceCreateDto
class TestAssetFaceCreateDto(unittest.TestCase):
"""AssetFaceCreateDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AssetFaceCreateDto:
"""Test AssetFaceCreateDto
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 `AssetFaceCreateDto`
"""
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
)
else:
return AssetFaceCreateDto(
asset_id = '',
height = 56,
image_height = 56,
image_width = 56,
person_id = '',
width = 56,
x = 56,
y = 56,
)
"""
def testAssetFaceCreateDto(self):
"""Test AssetFaceCreateDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,52 @@
# 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_delete_dto import AssetFaceDeleteDto
class TestAssetFaceDeleteDto(unittest.TestCase):
"""AssetFaceDeleteDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AssetFaceDeleteDto:
"""Test AssetFaceDeleteDto
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 `AssetFaceDeleteDto`
"""
model = AssetFaceDeleteDto()
if include_optional:
return AssetFaceDeleteDto(
force = True
)
else:
return AssetFaceDeleteDto(
force = True,
)
"""
def testAssetFaceDeleteDto(self):
"""Test AssetFaceDeleteDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,83 @@
# 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_response_dto import AssetFaceResponseDto
class TestAssetFaceResponseDto(unittest.TestCase):
"""AssetFaceResponseDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AssetFaceResponseDto:
"""Test AssetFaceResponseDto
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 `AssetFaceResponseDto`
"""
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,
person = generated.immich.openapi_client.models.person_response_dto.PersonResponseDto(
birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
color = '',
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'), ),
source_type = 'machine-learning'
)
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,
person = generated.immich.openapi_client.models.person_response_dto.PersonResponseDto(
birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
color = '',
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'), ),
)
"""
def testAssetFaceResponseDto(self):
"""Test AssetFaceResponseDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,60 @@
# 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_update_dto import AssetFaceUpdateDto
class TestAssetFaceUpdateDto(unittest.TestCase):
"""AssetFaceUpdateDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AssetFaceUpdateDto:
"""Test AssetFaceUpdateDto
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 `AssetFaceUpdateDto`
"""
model = AssetFaceUpdateDto()
if include_optional:
return AssetFaceUpdateDto(
data = [
generated.immich.openapi_client.models.asset_face_update_item.AssetFaceUpdateItem(
asset_id = '',
person_id = '', )
]
)
else:
return AssetFaceUpdateDto(
data = [
generated.immich.openapi_client.models.asset_face_update_item.AssetFaceUpdateItem(
asset_id = '',
person_id = '', )
],
)
"""
def testAssetFaceUpdateDto(self):
"""Test AssetFaceUpdateDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,54 @@
# 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_update_item import AssetFaceUpdateItem
class TestAssetFaceUpdateItem(unittest.TestCase):
"""AssetFaceUpdateItem unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AssetFaceUpdateItem:
"""Test AssetFaceUpdateItem
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 `AssetFaceUpdateItem`
"""
model = AssetFaceUpdateItem()
if include_optional:
return AssetFaceUpdateItem(
asset_id = '',
person_id = ''
)
else:
return AssetFaceUpdateItem(
asset_id = '',
person_id = '',
)
"""
def testAssetFaceUpdateItem(self):
"""Test AssetFaceUpdateItem"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,65 @@
# 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()

View File

@@ -0,0 +1,56 @@
# 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()

View File

@@ -0,0 +1,56 @@
# 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_ids_dto import AssetIdsDto
class TestAssetIdsDto(unittest.TestCase):
"""AssetIdsDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AssetIdsDto:
"""Test AssetIdsDto
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 `AssetIdsDto`
"""
model = AssetIdsDto()
if include_optional:
return AssetIdsDto(
asset_ids = [
''
]
)
else:
return AssetIdsDto(
asset_ids = [
''
],
)
"""
def testAssetIdsDto(self):
"""Test AssetIdsDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,55 @@
# 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_ids_response_dto import AssetIdsResponseDto
class TestAssetIdsResponseDto(unittest.TestCase):
"""AssetIdsResponseDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AssetIdsResponseDto:
"""Test AssetIdsResponseDto
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 `AssetIdsResponseDto`
"""
model = AssetIdsResponseDto()
if include_optional:
return AssetIdsResponseDto(
asset_id = '',
error = 'duplicate',
success = True
)
else:
return AssetIdsResponseDto(
asset_id = '',
success = True,
)
"""
def testAssetIdsResponseDto(self):
"""Test AssetIdsResponseDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,33 @@
# 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_job_name import AssetJobName
class TestAssetJobName(unittest.TestCase):
"""AssetJobName unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testAssetJobName(self):
"""Test AssetJobName"""
# inst = AssetJobName()
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,58 @@
# 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_jobs_dto import AssetJobsDto
class TestAssetJobsDto(unittest.TestCase):
"""AssetJobsDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AssetJobsDto:
"""Test AssetJobsDto
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 `AssetJobsDto`
"""
model = AssetJobsDto()
if include_optional:
return AssetJobsDto(
asset_ids = [
''
],
name = 'refresh-faces'
)
else:
return AssetJobsDto(
asset_ids = [
''
],
name = 'refresh-faces',
)
"""
def testAssetJobsDto(self):
"""Test AssetJobsDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,54 @@
# 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_media_response_dto import AssetMediaResponseDto
class TestAssetMediaResponseDto(unittest.TestCase):
"""AssetMediaResponseDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AssetMediaResponseDto:
"""Test AssetMediaResponseDto
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 `AssetMediaResponseDto`
"""
model = AssetMediaResponseDto()
if include_optional:
return AssetMediaResponseDto(
id = '',
status = 'created'
)
else:
return AssetMediaResponseDto(
id = '',
status = 'created',
)
"""
def testAssetMediaResponseDto(self):
"""Test AssetMediaResponseDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,33 @@
# 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_media_size import AssetMediaSize
class TestAssetMediaSize(unittest.TestCase):
"""AssetMediaSize unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testAssetMediaSize(self):
"""Test AssetMediaSize"""
# inst = AssetMediaSize()
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,33 @@
# 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_media_status import AssetMediaStatus
class TestAssetMediaStatus(unittest.TestCase):
"""AssetMediaStatus unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testAssetMediaStatus(self):
"""Test AssetMediaStatus"""
# inst = AssetMediaStatus()
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,33 @@
# 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_order import AssetOrder
class TestAssetOrder(unittest.TestCase):
"""AssetOrder unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testAssetOrder(self):
"""Test AssetOrder"""
# inst = AssetOrder()
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,170 @@
# 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_response_dto import AssetResponseDto
class TestAssetResponseDto(unittest.TestCase):
"""AssetResponseDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AssetResponseDto:
"""Test AssetResponseDto
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 `AssetResponseDto`
"""
model = AssetResponseDto()
if include_optional:
return 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 = generated.immich.openapi_client.models.asset_stack_response_dto.AssetStackResponseDto(
asset_count = 56,
id = '',
primary_asset_id = '', ),
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 = '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')
)
else:
return AssetResponseDto(
checksum = '',
device_asset_id = '',
device_id = '',
duration = '',
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,
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 = '',
thumbhash = '',
type = 'IMAGE',
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
)
"""
def testAssetResponseDto(self):
"""Test AssetResponseDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,56 @@
# 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_stack_response_dto import AssetStackResponseDto
class TestAssetStackResponseDto(unittest.TestCase):
"""AssetStackResponseDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AssetStackResponseDto:
"""Test AssetStackResponseDto
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 `AssetStackResponseDto`
"""
model = AssetStackResponseDto()
if include_optional:
return AssetStackResponseDto(
asset_count = 56,
id = '',
primary_asset_id = ''
)
else:
return AssetStackResponseDto(
asset_count = 56,
id = '',
primary_asset_id = '',
)
"""
def testAssetStackResponseDto(self):
"""Test AssetStackResponseDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,56 @@
# 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_stats_response_dto import AssetStatsResponseDto
class TestAssetStatsResponseDto(unittest.TestCase):
"""AssetStatsResponseDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AssetStatsResponseDto:
"""Test AssetStatsResponseDto
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 `AssetStatsResponseDto`
"""
model = AssetStatsResponseDto()
if include_optional:
return AssetStatsResponseDto(
images = 56,
total = 56,
videos = 56
)
else:
return AssetStatsResponseDto(
images = 56,
total = 56,
videos = 56,
)
"""
def testAssetStatsResponseDto(self):
"""Test AssetStatsResponseDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,33 @@
# 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_type_enum import AssetTypeEnum
class TestAssetTypeEnum(unittest.TestCase):
"""AssetTypeEnum unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testAssetTypeEnum(self):
"""Test AssetTypeEnum"""
# inst = AssetTypeEnum()
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,131 @@
# 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.assets_api import AssetsApi
class TestAssetsApi(unittest.TestCase):
"""AssetsApi unit test stubs"""
def setUp(self) -> None:
self.api = AssetsApi()
def tearDown(self) -> None:
pass
def test_check_bulk_upload(self) -> None:
"""Test case for check_bulk_upload
checkBulkUpload
"""
pass
def test_check_existing_assets(self) -> None:
"""Test case for check_existing_assets
checkExistingAssets
"""
pass
def test_delete_assets(self) -> None:
"""Test case for delete_assets
"""
pass
def test_download_asset(self) -> None:
"""Test case for download_asset
"""
pass
def test_get_all_user_assets_by_device_id(self) -> None:
"""Test case for get_all_user_assets_by_device_id
getAllUserAssetsByDeviceId
"""
pass
def test_get_asset_info(self) -> None:
"""Test case for get_asset_info
"""
pass
def test_get_asset_statistics(self) -> None:
"""Test case for get_asset_statistics
"""
pass
def test_get_memory_lane(self) -> None:
"""Test case for get_memory_lane
"""
pass
def test_get_random(self) -> None:
"""Test case for get_random
"""
pass
def test_play_asset_video(self) -> None:
"""Test case for play_asset_video
"""
pass
def test_replace_asset(self) -> None:
"""Test case for replace_asset
replaceAsset
"""
pass
def test_run_asset_jobs(self) -> None:
"""Test case for run_asset_jobs
"""
pass
def test_update_asset(self) -> None:
"""Test case for update_asset
"""
pass
def test_update_assets(self) -> None:
"""Test case for update_assets
"""
pass
def test_upload_asset(self) -> None:
"""Test case for upload_asset
"""
pass
def test_view_asset(self) -> None:
"""Test case for view_asset
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,33 @@
# 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.audio_codec import AudioCodec
class TestAudioCodec(unittest.TestCase):
"""AudioCodec unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testAudioCodec(self):
"""Test AudioCodec"""
# inst = AudioCodec()
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,61 @@
# 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.authentication_api import AuthenticationApi
class TestAuthenticationApi(unittest.TestCase):
"""AuthenticationApi unit test stubs"""
def setUp(self) -> None:
self.api = AuthenticationApi()
def tearDown(self) -> None:
pass
def test_change_password(self) -> None:
"""Test case for change_password
"""
pass
def test_login(self) -> None:
"""Test case for login
"""
pass
def test_logout(self) -> None:
"""Test case for logout
"""
pass
def test_sign_up_admin(self) -> None:
"""Test case for sign_up_admin
"""
pass
def test_validate_access_token(self) -> None:
"""Test case for validate_access_token
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,52 @@
# 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()

View File

@@ -0,0 +1,51 @@
# 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_update import AvatarUpdate
class TestAvatarUpdate(unittest.TestCase):
"""AvatarUpdate unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AvatarUpdate:
"""Test AvatarUpdate
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 `AvatarUpdate`
"""
model = AvatarUpdate()
if include_optional:
return AvatarUpdate(
color = 'primary'
)
else:
return AvatarUpdate(
)
"""
def testAvatarUpdate(self):
"""Test AvatarUpdate"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,55 @@
# 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.bulk_id_response_dto import BulkIdResponseDto
class TestBulkIdResponseDto(unittest.TestCase):
"""BulkIdResponseDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> BulkIdResponseDto:
"""Test BulkIdResponseDto
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 `BulkIdResponseDto`
"""
model = BulkIdResponseDto()
if include_optional:
return BulkIdResponseDto(
error = 'duplicate',
id = '',
success = True
)
else:
return BulkIdResponseDto(
id = '',
success = True,
)
"""
def testBulkIdResponseDto(self):
"""Test BulkIdResponseDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,56 @@
# 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.bulk_ids_dto import BulkIdsDto
class TestBulkIdsDto(unittest.TestCase):
"""BulkIdsDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> BulkIdsDto:
"""Test BulkIdsDto
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 `BulkIdsDto`
"""
model = BulkIdsDto()
if include_optional:
return BulkIdsDto(
ids = [
''
]
)
else:
return BulkIdsDto(
ids = [
''
],
)
"""
def testBulkIdsDto(self):
"""Test BulkIdsDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,54 @@
# 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.change_password_dto import ChangePasswordDto
class TestChangePasswordDto(unittest.TestCase):
"""ChangePasswordDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> ChangePasswordDto:
"""Test ChangePasswordDto
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 `ChangePasswordDto`
"""
model = ChangePasswordDto()
if include_optional:
return ChangePasswordDto(
new_password = 'password',
password = 'password'
)
else:
return ChangePasswordDto(
new_password = 'password',
password = 'password',
)
"""
def testChangePasswordDto(self):
"""Test ChangePasswordDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,58 @@
# 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()

View File

@@ -0,0 +1,56 @@
# 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()

View File

@@ -0,0 +1,54 @@
# 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.clip_config import CLIPConfig
class TestCLIPConfig(unittest.TestCase):
"""CLIPConfig unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> CLIPConfig:
"""Test CLIPConfig
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 `CLIPConfig`
"""
model = CLIPConfig()
if include_optional:
return CLIPConfig(
enabled = True,
model_name = ''
)
else:
return CLIPConfig(
enabled = True,
model_name = '',
)
"""
def testCLIPConfig(self):
"""Test CLIPConfig"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,33 @@
# 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.colorspace import Colorspace
class TestColorspace(unittest.TestCase):
"""Colorspace unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testColorspace(self):
"""Test Colorspace"""
# inst = Colorspace()
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,33 @@
# 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.cq_mode import CQMode
class TestCQMode(unittest.TestCase):
"""CQMode unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCQMode(self):
"""Test CQMode"""
# inst = CQMode()
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,61 @@
# 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.create_album_dto import CreateAlbumDto
class TestCreateAlbumDto(unittest.TestCase):
"""CreateAlbumDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> CreateAlbumDto:
"""Test CreateAlbumDto
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 `CreateAlbumDto`
"""
model = CreateAlbumDto()
if include_optional:
return CreateAlbumDto(
album_name = '',
album_users = [
generated.immich.openapi_client.models.album_user_create_dto.AlbumUserCreateDto(
role = null,
user_id = '', )
],
asset_ids = [
''
],
description = ''
)
else:
return CreateAlbumDto(
album_name = '',
)
"""
def testCreateAlbumDto(self):
"""Test CreateAlbumDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,59 @@
# 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.create_library_dto import CreateLibraryDto
class TestCreateLibraryDto(unittest.TestCase):
"""CreateLibraryDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> CreateLibraryDto:
"""Test CreateLibraryDto
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 `CreateLibraryDto`
"""
model = CreateLibraryDto()
if include_optional:
return CreateLibraryDto(
exclusion_patterns = [
''
],
import_paths = [
''
],
name = '',
owner_id = ''
)
else:
return CreateLibraryDto(
owner_id = '',
)
"""
def testCreateLibraryDto(self):
"""Test CreateLibraryDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,56 @@
# 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.create_profile_image_response_dto import CreateProfileImageResponseDto
class TestCreateProfileImageResponseDto(unittest.TestCase):
"""CreateProfileImageResponseDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> CreateProfileImageResponseDto:
"""Test CreateProfileImageResponseDto
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 `CreateProfileImageResponseDto`
"""
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_image_path = '',
user_id = ''
)
else:
return CreateProfileImageResponseDto(
profile_changed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
profile_image_path = '',
user_id = '',
)
"""
def testCreateProfileImageResponseDto(self):
"""Test CreateProfileImageResponseDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,56 @@
# 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.database_backup_config import DatabaseBackupConfig
class TestDatabaseBackupConfig(unittest.TestCase):
"""DatabaseBackupConfig unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DatabaseBackupConfig:
"""Test DatabaseBackupConfig
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 `DatabaseBackupConfig`
"""
model = DatabaseBackupConfig()
if include_optional:
return DatabaseBackupConfig(
cron_expression = '',
enabled = True,
keep_last_amount = 1
)
else:
return DatabaseBackupConfig(
cron_expression = '',
enabled = True,
keep_last_amount = 1,
)
"""
def testDatabaseBackupConfig(self):
"""Test DatabaseBackupConfig"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,37 @@
# 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.deprecated_api import DeprecatedApi
class TestDeprecatedApi(unittest.TestCase):
"""DeprecatedApi unit test stubs"""
def setUp(self) -> None:
self.api = DeprecatedApi()
def tearDown(self) -> None:
pass
def test_get_random(self) -> None:
"""Test case for get_random
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,43 @@
# 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.download_api import DownloadApi
class TestDownloadApi(unittest.TestCase):
"""DownloadApi unit test stubs"""
def setUp(self) -> None:
self.api = DownloadApi()
def tearDown(self) -> None:
pass
def test_download_archive(self) -> None:
"""Test case for download_archive
"""
pass
def test_get_download_info(self) -> None:
"""Test case for get_download_info
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,58 @@
# 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.download_archive_info import DownloadArchiveInfo
class TestDownloadArchiveInfo(unittest.TestCase):
"""DownloadArchiveInfo unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DownloadArchiveInfo:
"""Test DownloadArchiveInfo
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 `DownloadArchiveInfo`
"""
model = DownloadArchiveInfo()
if include_optional:
return DownloadArchiveInfo(
asset_ids = [
''
],
size = 56
)
else:
return DownloadArchiveInfo(
asset_ids = [
''
],
size = 56,
)
"""
def testDownloadArchiveInfo(self):
"""Test DownloadArchiveInfo"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,56 @@
# 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.download_info_dto import DownloadInfoDto
class TestDownloadInfoDto(unittest.TestCase):
"""DownloadInfoDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DownloadInfoDto:
"""Test DownloadInfoDto
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 `DownloadInfoDto`
"""
model = DownloadInfoDto()
if include_optional:
return DownloadInfoDto(
album_id = '',
archive_size = 1,
asset_ids = [
''
],
user_id = ''
)
else:
return DownloadInfoDto(
)
"""
def testDownloadInfoDto(self):
"""Test DownloadInfoDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,54 @@
# 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.download_response import DownloadResponse
class TestDownloadResponse(unittest.TestCase):
"""DownloadResponse unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DownloadResponse:
"""Test DownloadResponse
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 `DownloadResponse`
"""
model = DownloadResponse()
if include_optional:
return DownloadResponse(
archive_size = 56,
include_embedded_videos = True
)
else:
return DownloadResponse(
archive_size = 56,
include_embedded_videos = True,
)
"""
def testDownloadResponse(self):
"""Test DownloadResponse"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,66 @@
# 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.download_response_dto import DownloadResponseDto
class TestDownloadResponseDto(unittest.TestCase):
"""DownloadResponseDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DownloadResponseDto:
"""Test DownloadResponseDto
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 `DownloadResponseDto`
"""
model = DownloadResponseDto()
if include_optional:
return DownloadResponseDto(
archives = [
generated.immich.openapi_client.models.download_archive_info.DownloadArchiveInfo(
asset_ids = [
''
],
size = 56, )
],
total_size = 56
)
else:
return DownloadResponseDto(
archives = [
generated.immich.openapi_client.models.download_archive_info.DownloadArchiveInfo(
asset_ids = [
''
],
size = 56, )
],
total_size = 56,
)
"""
def testDownloadResponseDto(self):
"""Test DownloadResponseDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,52 @@
# 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.download_update import DownloadUpdate
class TestDownloadUpdate(unittest.TestCase):
"""DownloadUpdate unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DownloadUpdate:
"""Test DownloadUpdate
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 `DownloadUpdate`
"""
model = DownloadUpdate()
if include_optional:
return DownloadUpdate(
archive_size = 1,
include_embedded_videos = True
)
else:
return DownloadUpdate(
)
"""
def testDownloadUpdate(self):
"""Test DownloadUpdate"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,54 @@
# 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.duplicate_detection_config import DuplicateDetectionConfig
class TestDuplicateDetectionConfig(unittest.TestCase):
"""DuplicateDetectionConfig unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DuplicateDetectionConfig:
"""Test DuplicateDetectionConfig
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 `DuplicateDetectionConfig`
"""
model = DuplicateDetectionConfig()
if include_optional:
return DuplicateDetectionConfig(
enabled = True,
max_distance = 0.001
)
else:
return DuplicateDetectionConfig(
enabled = True,
max_distance = 0.001,
)
"""
def testDuplicateDetectionConfig(self):
"""Test DuplicateDetectionConfig"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,254 @@
# 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.duplicate_response_dto import DuplicateResponseDto
class TestDuplicateResponseDto(unittest.TestCase):
"""DuplicateResponseDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DuplicateResponseDto:
"""Test DuplicateResponseDto
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 `DuplicateResponseDto`
"""
model = DuplicateResponseDto()
if include_optional:
return DuplicateResponseDto(
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'), )
],
duplicate_id = ''
)
else:
return DuplicateResponseDto(
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'), )
],
duplicate_id = '',
)
"""
def testDuplicateResponseDto(self):
"""Test DuplicateResponseDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,37 @@
# 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.duplicates_api import DuplicatesApi
class TestDuplicatesApi(unittest.TestCase):
"""DuplicatesApi unit test stubs"""
def setUp(self) -> None:
self.api = DuplicatesApi()
def tearDown(self) -> None:
pass
def test_get_asset_duplicates(self) -> None:
"""Test case for get_asset_duplicates
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,56 @@
# 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.email_notifications_response import EmailNotificationsResponse
class TestEmailNotificationsResponse(unittest.TestCase):
"""EmailNotificationsResponse unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> EmailNotificationsResponse:
"""Test EmailNotificationsResponse
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 `EmailNotificationsResponse`
"""
model = EmailNotificationsResponse()
if include_optional:
return EmailNotificationsResponse(
album_invite = True,
album_update = True,
enabled = True
)
else:
return EmailNotificationsResponse(
album_invite = True,
album_update = True,
enabled = True,
)
"""
def testEmailNotificationsResponse(self):
"""Test EmailNotificationsResponse"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,53 @@
# 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.email_notifications_update import EmailNotificationsUpdate
class TestEmailNotificationsUpdate(unittest.TestCase):
"""EmailNotificationsUpdate unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> EmailNotificationsUpdate:
"""Test EmailNotificationsUpdate
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 `EmailNotificationsUpdate`
"""
model = EmailNotificationsUpdate()
if include_optional:
return EmailNotificationsUpdate(
album_invite = True,
album_update = True,
enabled = True
)
else:
return EmailNotificationsUpdate(
)
"""
def testEmailNotificationsUpdate(self):
"""Test EmailNotificationsUpdate"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,72 @@
# 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.exif_response_dto import ExifResponseDto
class TestExifResponseDto(unittest.TestCase):
"""ExifResponseDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> ExifResponseDto:
"""Test ExifResponseDto
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 `ExifResponseDto`
"""
model = ExifResponseDto()
if include_optional:
return 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 = ''
)
else:
return ExifResponseDto(
)
"""
def testExifResponseDto(self):
"""Test ExifResponseDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,52 @@
# 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.face_dto import FaceDto
class TestFaceDto(unittest.TestCase):
"""FaceDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> FaceDto:
"""Test FaceDto
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 `FaceDto`
"""
model = FaceDto()
if include_optional:
return FaceDto(
id = ''
)
else:
return FaceDto(
id = '',
)
"""
def testFaceDto(self):
"""Test FaceDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,55 @@
# 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.faces_api import FacesApi
class TestFacesApi(unittest.TestCase):
"""FacesApi unit test stubs"""
def setUp(self) -> None:
self.api = FacesApi()
def tearDown(self) -> None:
pass
def test_create_face(self) -> None:
"""Test case for create_face
"""
pass
def test_delete_face(self) -> None:
"""Test case for delete_face
"""
pass
def test_get_faces(self) -> None:
"""Test case for get_faces
"""
pass
def test_reassign_faces_by_id(self) -> None:
"""Test case for reassign_faces_by_id
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,60 @@
# 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.facial_recognition_config import FacialRecognitionConfig
class TestFacialRecognitionConfig(unittest.TestCase):
"""FacialRecognitionConfig unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> FacialRecognitionConfig:
"""Test FacialRecognitionConfig
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 `FacialRecognitionConfig`
"""
model = FacialRecognitionConfig()
if include_optional:
return FacialRecognitionConfig(
enabled = True,
max_distance = 0.1,
min_faces = 1,
min_score = 0.1,
model_name = ''
)
else:
return FacialRecognitionConfig(
enabled = True,
max_distance = 0.1,
min_faces = 1,
min_score = 0.1,
model_name = '',
)
"""
def testFacialRecognitionConfig(self):
"""Test FacialRecognitionConfig"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,56 @@
# 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()

View File

@@ -0,0 +1,54 @@
# 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()

View File

@@ -0,0 +1,72 @@
# 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()

View File

@@ -0,0 +1,66 @@
# 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()

View File

@@ -0,0 +1,59 @@
# 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()

View File

@@ -0,0 +1,49 @@
# 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()

View File

@@ -0,0 +1,54 @@
# 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.folders_response import FoldersResponse
class TestFoldersResponse(unittest.TestCase):
"""FoldersResponse unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> FoldersResponse:
"""Test FoldersResponse
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 `FoldersResponse`
"""
model = FoldersResponse()
if include_optional:
return FoldersResponse(
enabled = True,
sidebar_web = True
)
else:
return FoldersResponse(
enabled = True,
sidebar_web = True,
)
"""
def testFoldersResponse(self):
"""Test FoldersResponse"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,52 @@
# 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.folders_update import FoldersUpdate
class TestFoldersUpdate(unittest.TestCase):
"""FoldersUpdate unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> FoldersUpdate:
"""Test FoldersUpdate
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 `FoldersUpdate`
"""
model = FoldersUpdate()
if include_optional:
return FoldersUpdate(
enabled = True,
sidebar_web = True
)
else:
return FoldersUpdate(
)
"""
def testFoldersUpdate(self):
"""Test FoldersUpdate"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,33 @@
# 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.image_format import ImageFormat
class TestImageFormat(unittest.TestCase):
"""ImageFormat unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testImageFormat(self):
"""Test ImageFormat"""
# inst = ImageFormat()
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,33 @@
# 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()

View File

@@ -0,0 +1,53 @@
# 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()

View File

@@ -0,0 +1,62 @@
# 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()

View File

@@ -0,0 +1,52 @@
# 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_create_dto import JobCreateDto
class TestJobCreateDto(unittest.TestCase):
"""JobCreateDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> JobCreateDto:
"""Test JobCreateDto
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 `JobCreateDto`
"""
model = JobCreateDto()
if include_optional:
return JobCreateDto(
name = 'person-cleanup'
)
else:
return JobCreateDto(
name = 'person-cleanup',
)
"""
def testJobCreateDto(self):
"""Test JobCreateDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,33 @@
# 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_name import JobName
class TestJobName(unittest.TestCase):
"""JobName unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testJobName(self):
"""Test JobName"""
# inst = JobName()
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,52 @@
# 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_settings_dto import JobSettingsDto
class TestJobSettingsDto(unittest.TestCase):
"""JobSettingsDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> JobSettingsDto:
"""Test JobSettingsDto
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 `JobSettingsDto`
"""
model = JobSettingsDto()
if include_optional:
return JobSettingsDto(
concurrency = 1
)
else:
return JobSettingsDto(
concurrency = 1,
)
"""
def testJobSettingsDto(self):
"""Test JobSettingsDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,70 @@
# 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()

View File

@@ -0,0 +1,49 @@
# 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.jobs_api import JobsApi
class TestJobsApi(unittest.TestCase):
"""JobsApi unit test stubs"""
def setUp(self) -> None:
self.api = JobsApi()
def tearDown(self) -> None:
pass
def test_create_job(self) -> None:
"""Test case for create_job
"""
pass
def test_get_all_jobs_status(self) -> None:
"""Test case for get_all_jobs_status
"""
pass
def test_send_job_command(self) -> None:
"""Test case for send_job_command
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,79 @@
# 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.libraries_api import LibrariesApi
class TestLibrariesApi(unittest.TestCase):
"""LibrariesApi unit test stubs"""
def setUp(self) -> None:
self.api = LibrariesApi()
def tearDown(self) -> None:
pass
def test_create_library(self) -> None:
"""Test case for create_library
"""
pass
def test_delete_library(self) -> None:
"""Test case for delete_library
"""
pass
def test_get_all_libraries(self) -> None:
"""Test case for get_all_libraries
"""
pass
def test_get_library(self) -> None:
"""Test case for get_library
"""
pass
def test_get_library_statistics(self) -> None:
"""Test case for get_library_statistics
"""
pass
def test_scan_library(self) -> None:
"""Test case for scan_library
"""
pass
def test_update_library(self) -> None:
"""Test case for update_library
"""
pass
def test_validate(self) -> None:
"""Test case for validate
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,76 @@
# 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.library_response_dto import LibraryResponseDto
class TestLibraryResponseDto(unittest.TestCase):
"""LibraryResponseDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> LibraryResponseDto:
"""Test LibraryResponseDto
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 `LibraryResponseDto`
"""
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'),
exclusion_patterns = [
''
],
id = '',
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')
)
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'),
exclusion_patterns = [
''
],
id = '',
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'),
)
"""
def testLibraryResponseDto(self):
"""Test LibraryResponseDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,58 @@
# 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.library_stats_response_dto import LibraryStatsResponseDto
class TestLibraryStatsResponseDto(unittest.TestCase):
"""LibraryStatsResponseDto unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> LibraryStatsResponseDto:
"""Test LibraryStatsResponseDto
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 `LibraryStatsResponseDto`
"""
model = LibraryStatsResponseDto()
if include_optional:
return LibraryStatsResponseDto(
photos = 56,
total = 56,
usage = 56,
videos = 56
)
else:
return LibraryStatsResponseDto(
photos = 56,
total = 56,
usage = 56,
videos = 56,
)
"""
def testLibraryStatsResponseDto(self):
"""Test LibraryStatsResponseDto"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

Some files were not shown because too many files have changed in this diff Show More