Ensure the directory exists for testing

This commit is contained in:
tcely 2025-02-17 05:53:32 -05:00 committed by GitHub
parent a0453d040a
commit 76e3c78ff0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -212,6 +212,8 @@ class FrontEndTestCase(TestCase):
task = Task.objects.get_task('sync.tasks.index_source_task', task = Task.objects.get_task('sync.tasks.index_source_task',
args=(source_uuid,))[0] args=(source_uuid,))[0]
self.assertEqual(task.queue, source_uuid) self.assertEqual(task.queue, source_uuid)
# Run the check_source_directory_exists task
check_source_directory_exists.now(source_uuid)
# Check the source is now on the source overview page # Check the source is now on the source overview page
response = c.get('/sources') response = c.get('/sources')
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)