"""Configuration for model tests.""" import pytest from abacus_account.models import ReferencePayoneerProgram from tests.utils.factories import ( ReferencePaymentTypeFactory, ReferencePayoneerProgramFactory, ) @pytest.fixture(autouse=True) def fresh_db(fresh_db): """Automatically clear the db between tests in this folder.""" pass @pytest.fixture def mock_reference_payoneer_program() -> ReferencePayoneerProgram: """Return fake ReferencePayoneerProgram.""" reference_payment_type = ReferencePaymentTypeFactory.create() return ReferencePayoneerProgramFactory.create( payoneer_program_id=7777, reference_payment_type_id=reference_payment_type.reference_payment_type_id, )