-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #747 from AlexsLemonade/kurtwheeler/graceful-non-d…
…ownloads Handle no downloader work gracefully.
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import os | ||
|
||
from django.test import TestCase, tag | ||
from typing import List | ||
from unittest.mock import patch, call | ||
from urllib.error import URLError | ||
|
||
from data_refinery_workers.downloaders import utils | ||
|
||
class UtilsTestCase(TestCase): | ||
@tag('downloaders') | ||
def test_no_jobs_to_create(self): | ||
"""Make sure this function doesn't raise an exception with no files.""" | ||
utils.create_processor_job_for_original_files([]) | ||
|
||
self.assertTrue(True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters