"""Tests for reference_sap_profit_center model.""" from abacus_contract.models.reference_sap_profit_center import ReferenceSapProfitCenter def test_create_reference_sap_profit_center(): """Test to create reference_sap_profit_center record.""" reference_sap = ReferenceSapProfitCenter.create( profit_center='UK4914', company_code='4912', business_group='ORC' ) result = ReferenceSapProfitCenter.query.all() assert len(result) == 1 assert result[0] == reference_sap