from core_notifications.images.services import CreateImageService from tests.core_notifications.factories import DNAAccountFactory class TestCreateImageService: def test_success(self, app, db_session, faker): dna_account = DNAAccountFactory.build() test_name = faker.pystr() image = CreateImageService.execute(test_name, dna_account=dna_account) assert image.name == test_name assert image.created_by == dna_account