feat(product-suite): persist context and confirm actions
This commit is contained in:
@@ -237,6 +237,17 @@ class ImageStudioTests(TempDirMixin, unittest.TestCase):
|
||||
self.assertTrue(draft.item_id.startswith(image_studio.TEMPORARY_ITEM_PREFIX))
|
||||
self.assertEqual(draft.item_id, draft.storage_key)
|
||||
self.assertEqual(image_studio.PROJECT_BINDING_DRAFT, draft.binding_state)
|
||||
self.assertTrue(image_studio.project_has_content(draft.id, path=db_path))
|
||||
self.assertEqual(
|
||||
[draft.id],
|
||||
[
|
||||
project.id
|
||||
for project in image_studio.list_recoverable_draft_projects(
|
||||
path=db_path
|
||||
)
|
||||
],
|
||||
)
|
||||
image_studio.update_project_prompt(draft.id, "", path=db_path)
|
||||
self.assertFalse(image_studio.project_has_content(draft.id, path=db_path))
|
||||
self.assertEqual([], image_studio.list_recoverable_draft_projects(path=db_path))
|
||||
before_dirs = image_studio.project_image_dirs(os.path.join(temp_dir, "images"), draft)
|
||||
|
||||
Reference in New Issue
Block a user