diff --git a/.dockerignore b/.dockerignore index 5322b2db..4c4902f5 100644 --- a/.dockerignore +++ b/.dockerignore @@ -4,5 +4,5 @@ .gitattributes README.md tubesync/media -tubesync/downloads -db.sqlite3 \ No newline at end of file +tubesync/tubesync/downloads +db.sqlite3 diff --git a/.gitignore b/.gitignore index cf63cfba..17e61eba 100644 --- a/.gitignore +++ b/.gitignore @@ -63,7 +63,7 @@ db.sqlite3 db.sqlite3-journal /tubesync/static/ /tubesync/media/ -/tubesync/downloads/ +/tubesync/tubesync/downloads/ # Flask stuff: instance/ @@ -136,4 +136,4 @@ Pipfile.lock .vscode/launch.json # Ignore Jetbrains IDE files -.idea/ \ No newline at end of file +.idea/ diff --git a/tubesync/sync/tests.py b/tubesync/sync/tests.py index 1c99e82b..0646a937 100644 --- a/tubesync/sync/tests.py +++ b/tubesync/sync/tests.py @@ -16,7 +16,7 @@ from django.test import TestCase, Client, override_settings from django.utils import timezone from background_task.models import Task from .models import Source, Media -from .tasks import cleanup_old_media +from .tasks import cleanup_old_media, check_source_directory_exists from .filtering import filter_media from .utils import filter_response from .choices import (Val, Fallback, IndexSchedule, SourceResolution, @@ -212,6 +212,8 @@ class FrontEndTestCase(TestCase): task = Task.objects.get_task('sync.tasks.index_source_task', args=(source_uuid,))[0] 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 response = c.get('/sources') self.assertEqual(response.status_code, 200)