Add support for CP7 MPY bundles
This commit is contained in:
parent
de2deb406d
commit
a634f227b0
2 changed files with 10 additions and 5 deletions
|
|
@ -463,6 +463,11 @@ def get_bundle(tag):
|
|||
"releases/download"
|
||||
"/{tag}/adafruit-circuitpython-bundle-6.x-mpy-{tag}.zip".format(tag=tag)
|
||||
),
|
||||
"7mpy": (
|
||||
"https://github.com/adafruit/Adafruit_CircuitPython_Bundle/"
|
||||
"releases/download"
|
||||
"/{tag}/adafruit-circuitpython-bundle-7.x-mpy-{tag}.zip".format(tag=tag)
|
||||
),
|
||||
}
|
||||
click.echo("Downloading latest version information.\n")
|
||||
for platform, url in urls.items():
|
||||
|
|
|
|||
|
|
@ -638,11 +638,11 @@ def test_get_bundle():
|
|||
mock_requests.get.reset_mock()
|
||||
tag = "12345"
|
||||
circup.get_bundle(tag)
|
||||
assert mock_requests.get.call_count == 2
|
||||
assert mock_open.call_count == 2
|
||||
assert mock_shutil.rmtree.call_count == 2
|
||||
assert mock_zipfile.ZipFile.call_count == 2
|
||||
assert mock_zipfile.ZipFile().__enter__().extractall.call_count == 2
|
||||
assert mock_requests.get.call_count == 3
|
||||
assert mock_open.call_count == 3
|
||||
assert mock_shutil.rmtree.call_count == 3
|
||||
assert mock_zipfile.ZipFile.call_count == 3
|
||||
assert mock_zipfile.ZipFile().__enter__().extractall.call_count == 3
|
||||
|
||||
|
||||
def test_get_bundle_network_error():
|
||||
|
|
|
|||
Loading…
Reference in a new issue