Skip to content

Commit

Permalink
Merge pull request #2898 from raft-tech/2287-rec-oasdi-insurance
Browse files Browse the repository at this point in the history
2887 - 18A REC_OASDI_INSURANCE not mandatory
  • Loading branch information
elipe17 authored Apr 9, 2024
2 parents 16cf743 + d4d5a9c commit 487947e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tdrs-backend/tdpservice/parsers/schema_defs/ssp/m5.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
type="number",
startIndex=44,
endIndex=45,
required=True,
required=False,
validators=[validators.isInLimits(0, 2)],
),
Field(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
HEADER20184C24 SSP1ED
M42018101111111116120000406911161112
M520181011111111161120091106WTTTY0ZB92221222 222210112111112970000
TRAILER0000002
20 changes: 20 additions & 0 deletions tdrs-backend/tdpservice/parsers/test/test_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,26 @@ def test_parse_ssp_section4_file(ssp_section4_file, dfs):
assert first.RPT_MONTH_YEAR == 201810
assert first.FAMILIES_MONTH == 748

@pytest.fixture
def ssp_section2_rec_oadsi_file(stt_user, stt):
"""Fixture for sp_section2_rec_oadsi_file."""
return util.create_test_datafile('ssp_section2_rec_oadsi_file.txt', stt_user, stt, 'SSP Closed Case Data')


@pytest.mark.django_db()
def test_parse_ssp_section2_rec_oadsi_file(ssp_section2_rec_oadsi_file, dfs):
"""Test parsing SSP Section 2 REC_OADSI."""
ssp_section2_rec_oadsi_file.year = 2019
ssp_section2_rec_oadsi_file.quarter = 'Q1'

dfs.datafile = ssp_section2_rec_oadsi_file

parse.parse_datafile(ssp_section2_rec_oadsi_file, dfs)
parser_errors = ParserError.objects.filter(file=ssp_section2_rec_oadsi_file)

assert parser_errors.count() == 0


@pytest.fixture
def ssp_section2_file(stt_user, stt):
"""Fixture for ADS.E2J.NDM2.MS24."""
Expand Down

0 comments on commit 487947e

Please sign in to comment.