Example #1
0
 def accounts_waiting() -> List[str]:
     """
     Get accounts waiting for approval
     :return: list of accounts waiting for approval
     """
     return [
         account.account_name
         for account in WhitelistModel.get_accounts_by_status(
             WhitelistStatus.waiting.value)
     ]
Example #2
0
def test_get_accounts_by_status(clean_before_and_after,
                                multiple_whitelist_entries):
    a = WhitelistModel.get_accounts_by_status("waiting")
    assert len(list(a)) == 2
    b = WhitelistModel.get_accounts_by_status("approved_manually")
    assert len(list(b)) == 2