"""Account model tests.""" from moneyhub.models import Account from tests.unit.conftest import insert_mock_account def test_exists(): """Test if an account exists.""" account_id = 1 insert_mock_account(account_id) res = Account.exists(account_id) assert res def test_not_exists(): """Test if an account does NOT exist.""" account_id = 1 insert_mock_account(account_id) res = Account.exists(2) assert not res