From ae7b8f9ecff36c46bc98ad8f684d8d816341c07d Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 11 Nov 2020 20:52:23 +0200 Subject: [PATCH] Fix tests --- docs | 2 +- tests/commands/test_lib_complex.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs b/docs index a3209b7f..0e3e5dd7 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit a3209b7fbb442a3f6087116cd3727cbc26ae9cd5 +Subproject commit 0e3e5dd7ebe5daeec27fbe45e052fda5e8dd367a diff --git a/tests/commands/test_lib_complex.py b/tests/commands/test_lib_complex.py index 0014801b..c1314500 100644 --- a/tests/commands/test_lib_complex.py +++ b/tests/commands/test_lib_complex.py @@ -236,7 +236,9 @@ def test_global_lib_update_check(clirunner, validate_cliresult): result = clirunner.invoke(cmd_lib, ["-g", "update", "--dry-run", "--json-output"]) validate_cliresult(result) output = json.loads(result.output) - assert set(["ESPAsyncTCP", "NeoPixelBus"]) == set(lib["name"] for lib in output) + assert set(["Adafruit PN532", "ESPAsyncTCP", "NeoPixelBus"]) == set( + lib["name"] for lib in output + ) def test_global_lib_update(clirunner, validate_cliresult): @@ -256,7 +258,7 @@ def test_global_lib_update(clirunner, validate_cliresult): result = clirunner.invoke(cmd_lib, ["-g", "update"]) validate_cliresult(result) assert result.output.count("[Detached]") == 1 - assert result.output.count("[Up-to-date]") == 15 + assert result.output.count("[Up-to-date]") == 14 # update unknown library result = clirunner.invoke(cmd_lib, ["-g", "update", "Unknown"])