From 76b46f59e9d150812882506904fb2e25bc9b33f8 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 30 Jul 2021 20:13:53 +0300 Subject: [PATCH] Fix lib test --- docs | 2 +- tests/commands/test_lib_complex.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs b/docs index ef7532bd..ed1ae77d 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit ef7532bd35b4a1841c33207485c7e834572568d8 +Subproject commit ed1ae77d1bb42c09d0ec6b4a2aff09e40280522e diff --git a/tests/commands/test_lib_complex.py b/tests/commands/test_lib_complex.py index 5b19c30e..d74bf207 100644 --- a/tests/commands/test_lib_complex.py +++ b/tests/commands/test_lib_complex.py @@ -232,9 +232,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(["Adafruit PN532", "ESPAsyncTCP", "NeoPixelBus"]) == set( - lib["name"] for lib in output - ) + assert set( + ["Adafruit PN532", "AsyncMqttClient", "ESPAsyncTCP", "NeoPixelBus"] + ) == set(lib["name"] for lib in output) def test_global_lib_update(clirunner, validate_cliresult): @@ -254,7 +254,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]") == 14 + assert result.output.count("[Up-to-date]") == 13 # update unknown library result = clirunner.invoke(cmd_lib, ["-g", "update", "Unknown"])