Skip to content

Commit

Permalink
Unit test for preview_image function
Browse files Browse the repository at this point in the history
WIP
  • Loading branch information
anishTP committed Nov 7, 2023
1 parent 6c698d2 commit e6bcca7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/unit/views/preview_image_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import pytest

from funnel.views.thumbnails import render_project_preview_image

@pytest.mark.usefixtures('app_context')
@pytest.fixture()
def add_tasks_to_queue(project):
render_project_preview_image.queue(project_id=project.id, job_id=project.id)

@pytest.mark.usefixtures('add_tasks_to_queue', 'project_expo2011', 'project_ai1',
'project_ai2')
def test_preview_image_jobs():
add_tasks_to_queue(project_expo2011)
add_tasks_to_queue(project_ai1)
add_tasks_to_queue(project_ai2)
pass

0 comments on commit e6bcca7

Please sign in to comment.