Skip to content

Commit

Permalink
3076 fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
raftmsohani committed Aug 30, 2024
1 parent fb6ecb7 commit 198b98a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tdrs-backend/tdpservice/data_files/test/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ def test_SubmissionDateFilter(client):
fake_query = DataFile.objects.all()
data_file_admin = DataFileAdmin(DataFile, AdminSite())
filter = DataFileAdmin.SubmissionDateFilter(None, {'Submission Day/Month/Year': '1'}, DataFile, DataFileAdmin)
assert data_file_admin.SubmissionDateFilter.title == 'Submission Date'
assert data_file_admin.SubmissionDateFilter.title == 'submission date'
assert data_file_admin.SubmissionDateFilter.parameter_name == 'Submission Day/Month/Year'
assert data_file_admin.SubmissionDateFilter.lookups(filter, None, None) == [
('1', 'Yesterday'), ('0', 'Today'), ('7', 'Past 7 days'), ('30', 'This month'), ('365', 'This year')
('0', 'Today'), ('1', 'Yesterday'), ('7', 'Past 7 days'), ('30', 'This month'), ('365', 'This year')
]
assert data_file_admin.SubmissionDateFilter.queryset(filter, None, fake_query).exists() is False
df = DataFileFactory()
Expand Down

0 comments on commit 198b98a

Please sign in to comment.