-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add download only for pre-fetch of runtimes
example: dronekit-sitl download copter-3.3 Some level of error handling was introduced to the download block which now checks for a 404 http-status. I also introduced some re-wording throughout the download process
- Loading branch information
1 parent
cced0d5
commit 1e8711b
Showing
3 changed files
with
36 additions
and
5 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
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,9 @@ | ||
from dronekit_sitl import SITL | ||
from nose.tools import raises | ||
import unittest | ||
|
||
class TestDownloader(unittest.TestCase): | ||
@raises(SystemExit) | ||
def test_download_404(self): | ||
sitl = SITL() | ||
sitl.download('rocket', '1.123.098.123') |
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