upload asset endpoint

This commit is contained in:
harisreedhar
2026-01-16 17:05:17 +05:30
parent 0d86679c67
commit a09c078c90
7 changed files with 321 additions and 89 deletions
+3 -3
View File
@@ -113,8 +113,8 @@ def test_select_source_assets(test_client : TestClient) -> None:
]
asset_ids =\
[
asset_store.create_asset(session_id, 'source', source_paths[0]).get('id'),
asset_store.create_asset(session_id, 'source', source_paths[1]).get('id')
asset_store.create_asset(session_id, 'source', 'image', source_paths[0]).get('id'),
asset_store.create_asset(session_id, 'source', 'image', source_paths[1]).get('id')
]
select_response = test_client.put('/state?action=select&type=source', json =
@@ -156,7 +156,7 @@ def test_select_target_assets(test_client : TestClient) -> None:
access_token = create_session_body.get('access_token')
session_id = session_manager.find_session_id(access_token)
target_path = get_test_example_file('target-240p.jpg')
asset_id = asset_store.create_asset(session_id, 'target', target_path).get('id')
asset_id = asset_store.create_asset(session_id, 'target', 'image', target_path).get('id')
select_response = test_client.put('/state?action=select&type=target', json=
{