Fix the misspelled expected_categories

This commit is contained in:
tcely authored and GitHub committed 2025-02-02 01:16:47 -05:00
1 parent 32e481675b
commit 12fc5e2842
1 file changed
+5 -5
+5 -5
View File
@@ -173,7 +173,7 @@ class FrontEndTestCase(TestCase):
self.assertEqual(response.status_code, 200)
# Create a new source
data_categories = ('sponsor', 'preview',)
exected_categories = ['sponsor', 'preview']
expected_categories = ['sponsor', 'preview']
data = {
'source_type': 'c',
'key': 'testkey',
@@ -208,7 +208,7 @@ class FrontEndTestCase(TestCase):
self.assertEqual(str(source.pk), source_uuid)
# Check that the SponsorBlock categories were saved
self.assertEqual(source.sponsorblock_categories.selected_choices,
exected_categories)
expected_categories)
# Check a task was created to index the media for the new source
source_uuid = str(source.pk)
task = Task.objects.get_task('sync.tasks.index_source_task',
@@ -227,7 +227,7 @@ class FrontEndTestCase(TestCase):
source.refresh_from_db()
# Check that the SponsorBlock categories remain saved
self.assertEqual(source.sponsorblock_categories.selected_choices,
exected_categories)
expected_categories)
# Update the source key
data = {
'source_type': Source.SOURCE_TYPE_YOUTUBE_CHANNEL,
@@ -264,7 +264,7 @@ class FrontEndTestCase(TestCase):
# Check that the SponsorBlock categories remain saved
source.refresh_from_db()
self.assertEqual(source.sponsorblock_categories.selected_choices,
exected_categories)
expected_categories)
# Update the source index schedule which should recreate the scheduled task
data = {
'source_type': Source.SOURCE_TYPE_YOUTUBE_CHANNEL,
@@ -299,7 +299,7 @@ class FrontEndTestCase(TestCase):
source = Source.objects.get(pk=source_uuid)
# Check that the SponsorBlock categories remain saved
self.assertEqual(source.sponsorblock_categories.selected_choices,
exected_categories)
expected_categories)
# Check a new task has been created by seeing if the pk has changed
new_task = Task.objects.get_task('sync.tasks.index_source_task',
args=(source_uuid,))[0]