Skip to content

Commit

Permalink
Increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
drew2a committed Oct 18, 2021
1 parent c2e7f80 commit 4088562
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 4088562

Please sign in to comment.