feat(product-suite): refine history account filters
This commit is contained in:
@@ -1208,6 +1208,30 @@ class ImageStudioTests(TempDirMixin, unittest.TestCase):
|
||||
)
|
||||
],
|
||||
)
|
||||
self.assertEqual(
|
||||
["main-shop", "second-shop"],
|
||||
[
|
||||
account.account_alias
|
||||
for account in image_studio.list_global_history_accounts(path=db_path)
|
||||
],
|
||||
)
|
||||
self.assertEqual(
|
||||
[first_project.id, first_project.id],
|
||||
[
|
||||
round_.project_id
|
||||
for round_ in image_studio.list_global_generation_rounds(
|
||||
account_alias="main-shop",
|
||||
path=db_path,
|
||||
)
|
||||
],
|
||||
)
|
||||
self.assertEqual(
|
||||
[],
|
||||
image_studio.list_global_generation_rounds(
|
||||
account_alias="main",
|
||||
path=db_path,
|
||||
),
|
||||
)
|
||||
self.assertEqual(
|
||||
[second_project.id],
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user