remove 5.x and test for 2 not 3 bundles

This commit is contained in:
askpatricw 2021-01-31 12:46:54 -08:00
parent a4949b0de8
commit 97f2353dc8
2 changed files with 5 additions and 10 deletions

View file

@ -468,11 +468,6 @@ def get_bundle(tag):
"/releases/download"
"/{tag}/adafruit-circuitpython-bundle-py-{tag}.zip".format(tag=tag)
),
"5mpy": (
"https://github.com/adafruit/Adafruit_CircuitPython_Bundle"
"/releases/download"
"/{tag}/adafruit-circuitpython-bundle-5.x-mpy-{tag}.zip".format(tag=tag)
),
"6mpy": (
"https://github.com/adafruit/Adafruit_CircuitPython_Bundle/"
"releases/download"

View file

@ -606,11 +606,11 @@ def test_get_bundle():
mock_requests.get.reset_mock()
tag = "12345"
circup.get_bundle(tag)
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
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
def test_get_bundle_network_error():