mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-22 13:06:34 +00:00
Ensure the directory exists for testing
This commit is contained in:
parent
a0453d040a
commit
76e3c78ff0
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user