mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-25 06:26:37 +00:00
Remove unneeded test_source_types
This commit is contained in:
parent
b45675b13a
commit
09c9d93372
@ -34,7 +34,6 @@ class FrontEndTestCase(TestCase):
|
|||||||
self.assertEqual(response.status_code, 200)
|
self.assertEqual(response.status_code, 200)
|
||||||
|
|
||||||
def test_validate_source(self):
|
def test_validate_source(self):
|
||||||
test_source_types = youtube_long_source_types
|
|
||||||
test_sources = {
|
test_sources = {
|
||||||
'youtube-channel': {
|
'youtube-channel': {
|
||||||
'valid': (
|
'valid': (
|
||||||
@ -126,7 +125,7 @@ class FrontEndTestCase(TestCase):
|
|||||||
for (source_type, tests) in test_sources.items():
|
for (source_type, tests) in test_sources.items():
|
||||||
for test, urls in tests.items():
|
for test, urls in tests.items():
|
||||||
for url in urls:
|
for url in urls:
|
||||||
source_type_char = test_source_types.get(source_type)
|
source_type_char = youtube_long_source_types.get(source_type)
|
||||||
data = {'source_url': url, 'source_type': source_type_char}
|
data = {'source_url': url, 'source_type': source_type_char}
|
||||||
response = c.post(f'/source-validate/{source_type}', data)
|
response = c.post(f'/source-validate/{source_type}', data)
|
||||||
if test == 'valid':
|
if test == 'valid':
|
||||||
|
Loading…
Reference in New Issue
Block a user