Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup!: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xitij2000 committed Nov 22, 2024
1 parent 318d7c6 commit b2af643
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openedx/core/djangoapps/agreements/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def test_get_user_agreement_record(self):
assert response.status_code == status.HTTP_200_OK
assert 'accepted_at' in response.data

response = self.client.get(self.url, {"after": datetime.now() + timedelta(days=1)})
response = self.client.get(self.url, {"after": str(datetime.now() + timedelta(days=1))})
assert response.status_code == status.HTTP_404_NOT_FOUND

def test_post_user_agreement(self):
Expand All @@ -328,11 +328,11 @@ def test_post_user_agreement(self):
response = self.client.get(self.url)
assert response.status_code == status.HTTP_200_OK

response = self.client.get(self.url, { "after": "2024-11-21T13:00:00Z" })
response = self.client.get(self.url, {"after": "2024-11-21T13:00:00Z"})
assert response.status_code == status.HTTP_404_NOT_FOUND

response = self.client.post(self.url)
assert response.status_code == status.HTTP_201_CREATED

response = self.client.get(self.url, { "after": "2024-11-21T13:00:00Z" })
response = self.client.get(self.url, {"after": "2024-11-21T13:00:00Z"})
assert response.status_code == status.HTTP_200_OK

0 comments on commit b2af643

Please sign in to comment.