From 4088562166498949c8393c310a98c12f23646b78 Mon Sep 17 00:00:00 2001 From: drew2a Date: Mon, 18 Oct 2021 17:12:35 +0200 Subject: [PATCH] Increase test coverage --- .../components/masterkey/tests/test_masterkey_component.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/tribler-core/tribler_core/components/masterkey/tests/test_masterkey_component.py b/src/tribler-core/tribler_core/components/masterkey/tests/test_masterkey_component.py index 9dfe09d4b0f..85343739738 100644 --- a/src/tribler-core/tribler_core/components/masterkey/tests/test_masterkey_component.py +++ b/src/tribler-core/tribler_core/components/masterkey/tests/test_masterkey_component.py @@ -16,6 +16,13 @@ async def test_masterkey_component(tribler_config): await session.shutdown() +async def test_get_private_key_filename(tribler_config): + private_key_file_name = MasterKeyComponent.get_private_key_filename(tribler_config) + tribler_config.general.testnet = True + testnet_private_key_file_name = MasterKeyComponent.get_private_key_filename(tribler_config) + assert private_key_file_name != testnet_private_key_file_name + + @pytest.mark.asyncio async def test_create(tmp_path): private_key_path = tmp_path / 'private'