From e8643528ea8a73153def8fea13194ac50fef4149 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 24 Aug 2016 15:18:45 +0300 Subject: [PATCH] Test updates for PubSubClient library --- tests/test_maintenance.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/test_maintenance.py b/tests/test_maintenance.py index d444fe1c..b4f7a97d 100644 --- a/tests/test_maintenance.py +++ b/tests/test_maintenance.py @@ -97,7 +97,8 @@ def test_check_pio_upgrade(clirunner, validate_cliresult, isolated_pio_home): def test_check_lib_updates(clirunner, validate_cliresult, isolated_pio_home): # install obsolete library - result = clirunner.invoke(cli_pio, ["lib", "-g", "install", "Json@<5.4"]) + result = clirunner.invoke(cli_pio, + ["lib", "-g", "install", "PubSubClient@<2.6"]) validate_cliresult(result) # reset check time @@ -107,7 +108,8 @@ def test_check_lib_updates(clirunner, validate_cliresult, isolated_pio_home): result = clirunner.invoke(cli_pio, ["lib", "-g", "list"]) validate_cliresult(result) - assert "There are the new updates for libraries (Json)" in result.output + assert ("There are the new updates for libraries (PubSubClient)" in + result.output) def test_check_and_update_libraries(clirunner, validate_cliresult, @@ -128,9 +130,10 @@ def test_check_and_update_libraries(clirunner, validate_cliresult, assert len(prev_data) == 1 # initiate auto-updating - result = clirunner.invoke(cli_pio, ["lib", "-g", "show", "Json"]) + result = clirunner.invoke(cli_pio, ["lib", "-g", "show", "PubSubClient"]) validate_cliresult(result) - assert "There are the new updates for libraries (Json)" in result.output + assert ("There are the new updates for libraries (PubSubClient)" in + result.output) assert "Please wait while updating libraries" in result.output assert "[Out-of-date]" in result.output