Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimpe committed Oct 18, 2023
1 parent 0ddd03d commit dc99ebd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -581,11 +581,11 @@ def test_can_create_and_index_ssp_m3_submission():


@pytest.mark.django_db
def test_can_create_and_index_ssp_m6_submission():
def test_can_create_and_index_ssp_m6_submission(test_datafile):
"""SSP M6 submissions can be created and mapped."""
record_num = fake.uuid4()

submission = models.tanf.SSP_M6()
submission = models.ssp.SSP_M6()
submission.datafile = test_datafile
submission.RecordType = record_num
submission.CALENDAR_QUARTER = 1
Expand All @@ -610,7 +610,7 @@ def test_can_create_and_index_ssp_m6_submission():

assert submission.id is not None

search = documents.tanf.SSP_M6DataSubmissionDocument.search().query(
search = documents.ssp.SSP_M6DataSubmissionDocument.search().query(
'match',
RecordType=record_num
)
Expand Down
3 changes: 3 additions & 0 deletions tdrs-backend/tdpservice/users/test/test_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ def test_ofa_system_admin_permissions(ofa_system_admin):
'search_indexes.add_ssp_m3',
'search_indexes.view_ssp_m3',
'search_indexes.change_ssp_m3',
'search_indexes.add_ssp_m6',
'search_indexes.view_ssp_m6',
'search_indexes.change_ssp_m6',
}
group_permissions = ofa_system_admin.get_group_permissions()
assert group_permissions == expected_permissions
Expand Down

0 comments on commit dc99ebd

Please sign in to comment.