cr-connect-workflow/tests/test_files_to_filesystem.py
mike cullerton 5c90ce01a6 *** WIP ***
Temp services `ToFilesystemService` and `FromFilesystemService` for migrating files To and From the filesystem - Not sure where these classes will end up
Tests to call the two services.
upgrade method in migration that writes workflow spec files and metadata to filesystem
2021-12-16 14:22:37 -05:00

19 lines
508 B
Python

from tests.base_test import BaseTest
from crc import session
from crc.models.file import FileModel
from crc.services.temp_migration_service import ToFilesystemService
class TestFilesToFilesystem(BaseTest):
def test_files_to_filesystem(self):
self.load_example_data()
files = session.query(FileModel).all()
for file in files:
if file.archived is not True:
ToFilesystemService().write_file_to_system(file)
print('test_files_to_filesystem')