factories#
FileFormatVersionFactory#
Bases: DjangoModelFactory
Source code in src/apps/files/factories.py
FileStorageFactory#
Bases: DjangoModelFactory
Source code in src/apps/files/factories.py
FileFactory#
Bases: DjangoModelFactory
Source code in src/apps/files/factories.py
create_file_tree#
Add files to a project.
Creates files in storage using list of file paths in file_paths. Optional file_args dict allows setting file factory arguments by file path. Use '*' as path to apply to all files.
Returns dict of path->File mappings.
Source code in src/apps/files/factories.py
create_project_with_files#
Create a storage project and add files to it.
Passes arguments to create_file_tree. Returns dict with files and project parameters.
Source code in src/apps/files/factories.py
create_v2_file_data#
Create V2 file list payload for testing migration logic.
Example:
will return three legacy files belonging to "project_x" in service "ida".