From 6c7673f17b3f58ad90f9f17a335ef0e8f9392cff Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 6 Oct 2016 13:41:30 +0300 Subject: [PATCH] Fix Unit Test --- platformio/pioplus.py | 2 +- tests/commands/test_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platformio/pioplus.py b/platformio/pioplus.py index 6071795a..07704885 100644 --- a/platformio/pioplus.py +++ b/platformio/pioplus.py @@ -46,7 +46,7 @@ def pioplus_install(): def pioplus_update(): pm = PioPlusPackageManager() for item in PACKAGE_DEPS.values(): - package_dir = pm.get_package_dir(item['name'], item['requirements']) + package_dir = pm.get_package_dir(item['name']) if package_dir: pm.update(item['name'], item['requirements']) diff --git a/tests/commands/test_test.py b/tests/commands/test_test.py index c725c780..5147f941 100644 --- a/tests/commands/test_test.py +++ b/tests/commands/test_test.py @@ -26,4 +26,4 @@ def test_local_env(): if result['returncode'] != 1: pytest.fail(result) assert all( - [s in result['out'] for s in ("[PASSED]", "[IGNORED]", "[FAILED]")]) + [s in result['out'] for s in ("PASSED", "IGNORED", "FAILED")])