From 7c459a58053a27b60710dd2b435294e54b426362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Le=C5=9Bniewski?= Date: Fri, 9 Sep 2022 09:41:34 +0200 Subject: [PATCH] Fix failing test_keys unit test This is a fix for the `test_keys` unit tests, which started failing after commit 043b919 (Fix B2Api.get_key() returning wrong key if `key_id` is incorrect) was added to b2sdk. --- CHANGELOG.md | 1 + test/unit/test_console_tool.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d9488f53b..c65db5a51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Infrastructure * Fix warnings in tests +* Fix `test_keys` unit test after changes in b2sdk ## [3.5.0] - 2022-07-27 diff --git a/test/unit/test_console_tool.py b/test/unit/test_console_tool.py index c1c68a521..a86d3b187 100644 --- a/test/unit/test_console_tool.py +++ b/test/unit/test_console_tool.py @@ -637,14 +637,12 @@ def test_keys(self): expected_list_keys_out = """ appKeyId0 goodKeyName-One appKeyId1 goodKeyName-Two - appKeyId2 goodKeyName-Three appKeyId3 goodKeyName-Four """ expected_list_keys_out_long = """ appKeyId0 goodKeyName-One - - - '' readFiles,listBuckets appKeyId1 goodKeyName-Two my-bucket-a - - '' readFiles,listBuckets,readBucketEncryption - appKeyId2 goodKeyName-Three id=bucket_1 - - '' readFiles,listBuckets appKeyId3 goodKeyName-Four - - - '' %s """ % (','.join(ALL_CAPABILITIES),)