Skip to content

Commit 08bfa83

Browse files
committed
add test to check if the bug is fixed
1 parent d030db7 commit 08bfa83

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/test_core.py

+10
Original file line numberDiff line numberDiff line change
@@ -812,3 +812,13 @@ def test_core_loading_package_manager(run_command):
812812

813813
result = run_command(["core", "list", "--all", "--format", "json"])
814814
assert result.ok # this should not make the cli crash
815+
816+
817+
def test_core_index_without_checksum(run_command):
818+
assert run_command(["config", "init", "--dest-dir", "."])
819+
url = "https://raw.githubusercontent.com/keyboardio/ArduinoCore-GD32-Keyboardio/main/package_gd32_index.json" # noqa: E501
820+
assert run_command(["config", "add", "board_manager.additional_urls", url])
821+
822+
assert run_command(["core", "update-index"])
823+
result = run_command(["core", "list", "--all"])
824+
assert result.ok # this should not make the cli crash

0 commit comments

Comments
 (0)