determine _bundle_count dynamically

This commit is contained in:
Dan Halbert 2022-06-08 08:48:59 -04:00 committed by GitHub
parent c013e555ea
commit 4eea33612a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -931,7 +931,7 @@ def test_get_bundle():
bundle = circup.Bundle(TEST_BUNDLE_NAME)
circup.get_bundle(bundle, tag)
# how many bundles currently supported. i.e. 6x.mpy, 7x.mpy, py = 3 bundles
_bundle_count = 3
_bundle_count = len(circup.PLATFORMS)
assert mock_requests.get.call_count == _bundle_count
assert mock_open.call_count == _bundle_count
assert mock_shutil.rmtree.call_count == _bundle_count