Fix tests

This commit is contained in:
Ivan Kravets
2019-12-18 14:03:10 +02:00
parent b15ddc00a5
commit 1bd6e898ad
2 changed files with 5 additions and 3 deletions

2
docs

Submodule docs updated: 5aaba30d88...c25f5d453c

View File

@ -230,7 +230,9 @@ def test_global_lib_update_check(clirunner, validate_cliresult):
)
validate_cliresult(result)
output = json.loads(result.output)
assert set(["RFcontrol", "NeoPixelBus"]) == set([l["name"] for l in output])
assert set(["RFcontrol", "ESPAsyncTCP", "NeoPixelBus"]) == set(
[l["name"] for l in output]
)
def test_global_lib_update(clirunner, validate_cliresult):
@ -250,7 +252,7 @@ def test_global_lib_update(clirunner, validate_cliresult):
result = clirunner.invoke(cmd_lib, ["-g", "update"])
validate_cliresult(result)
assert result.output.count("[Detached]") == 5
assert result.output.count("[Up-to-date]") == 11
assert result.output.count("[Up-to-date]") == 10
assert "Uninstalling RFcontrol @ 77d4eb3f8a" in result.output
# update unknown library