mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 13:36:35 +00:00
Merge pull request #735 from tcely/patch-2
Some checks are pending
Run Django tests for TubeSync / test (3.10) (push) Waiting to run
Run Django tests for TubeSync / test (3.11) (push) Waiting to run
Run Django tests for TubeSync / test (3.12) (push) Waiting to run
Run Django tests for TubeSync / test (3.7) (push) Waiting to run
Run Django tests for TubeSync / test (3.8) (push) Waiting to run
Run Django tests for TubeSync / test (3.9) (push) Waiting to run
Run Django tests for TubeSync / containerise (push) Waiting to run
Some checks are pending
Run Django tests for TubeSync / test (3.10) (push) Waiting to run
Run Django tests for TubeSync / test (3.11) (push) Waiting to run
Run Django tests for TubeSync / test (3.12) (push) Waiting to run
Run Django tests for TubeSync / test (3.7) (push) Waiting to run
Run Django tests for TubeSync / test (3.8) (push) Waiting to run
Run Django tests for TubeSync / test (3.9) (push) Waiting to run
Run Django tests for TubeSync / containerise (push) Waiting to run
Ensure the directory exists for testing
This commit is contained in:
commit
676b2c3ace
@ -4,5 +4,5 @@
|
|||||||
.gitattributes
|
.gitattributes
|
||||||
README.md
|
README.md
|
||||||
tubesync/media
|
tubesync/media
|
||||||
tubesync/downloads
|
tubesync/tubesync/downloads
|
||||||
db.sqlite3
|
db.sqlite3
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -63,7 +63,7 @@ db.sqlite3
|
|||||||
db.sqlite3-journal
|
db.sqlite3-journal
|
||||||
/tubesync/static/
|
/tubesync/static/
|
||||||
/tubesync/media/
|
/tubesync/media/
|
||||||
/tubesync/downloads/
|
/tubesync/tubesync/downloads/
|
||||||
|
|
||||||
# Flask stuff:
|
# Flask stuff:
|
||||||
instance/
|
instance/
|
||||||
|
@ -16,7 +16,7 @@ from django.test import TestCase, Client, override_settings
|
|||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
from background_task.models import Task
|
from background_task.models import Task
|
||||||
from .models import Source, Media
|
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 .filtering import filter_media
|
||||||
from .utils import filter_response
|
from .utils import filter_response
|
||||||
from .choices import (Val, Fallback, IndexSchedule, SourceResolution,
|
from .choices import (Val, Fallback, IndexSchedule, SourceResolution,
|
||||||
@ -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