From 620bd224764a1d2a50b02b2137c481932b5b5585 Mon Sep 17 00:00:00 2001 From: Mo Sohani Date: Wed, 10 Jan 2024 13:05:46 -0500 Subject: [PATCH] corrected t7 tests --- tdrs-backend/tdpservice/parsers/schema_defs/tribal_tanf/t7.py | 3 +-- tdrs-backend/tdpservice/parsers/test/test_parse.py | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tdrs-backend/tdpservice/parsers/schema_defs/tribal_tanf/t7.py b/tdrs-backend/tdpservice/parsers/schema_defs/tribal_tanf/t7.py index 332caed97..8dda3f03d 100644 --- a/tdrs-backend/tdpservice/parsers/schema_defs/tribal_tanf/t7.py +++ b/tdrs-backend/tdpservice/parsers/schema_defs/tribal_tanf/t7.py @@ -1,8 +1,7 @@ """Schema for Tribal TANF T7 Row.""" -from tdpservice.parsers.util import SchemaManager from tdpservice.parsers.fields import Field, TransformField -from tdpservice.parsers.row_schema import RowSchema +from tdpservice.parsers.row_schema import RowSchema, SchemaManager from tdpservice.parsers.transforms import calendar_quarter_to_rpt_month_year from tdpservice.parsers import validators from tdpservice.search_indexes.models.tribal import Tribal_TANF_T7 diff --git a/tdrs-backend/tdpservice/parsers/test/test_parse.py b/tdrs-backend/tdpservice/parsers/test/test_parse.py index 9170582cf..96518daac 100644 --- a/tdrs-backend/tdpservice/parsers/test/test_parse.py +++ b/tdrs-backend/tdpservice/parsers/test/test_parse.py @@ -1203,6 +1203,8 @@ def tribal_section_4_file(stt_user, stt): @pytest.mark.django_db() def test_parse_tribal_section_4_file(tribal_section_4_file): """Test parsing Tribal TANF Section 4 submission.""" + tribal_section_4_file.year = 2020 + tribal_section_4_file.quarter = 'Q1' parse.parse_datafile(tribal_section_4_file) assert Tribal_TANF_T7.objects.all().count() == 18