def test_id_list_default(yagna_container): """Test thst the result of `yagna id list` contains the default identity.""" yagna = Cli(yagna_container).yagna ids = yagna.id_list() assert len(ids) == 1 default_identity = yagna.id_show() assert ids[0] == default_identity
def test_id_list_many(yagna_container): """Test that the result of `yagna id list` contains all identities.""" yagna = Cli(yagna_container).yagna default_identity = yagna.id_show() another_identity = yagna.id_create() yet_another_identity = yagna.id_create(alias="id-alias") ids = yagna.id_list() assert set(ids) == { default_identity, another_identity, yet_another_identity, }