Skip to content

Commit

Permalink
test adjusted for publish date addition
Browse files Browse the repository at this point in the history
  • Loading branch information
DRIESASTER committed May 23, 2024
1 parent 7c96de6 commit e03f50d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/tests/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# skeletons for basic json objects
subject = {"name": "test subject"}
future_date = datetime.now(timezone.utc) + timedelta(weeks=1)
past_date = datetime.now(timezone.utc) - timedelta(weeks=1)
project = {
"name": "test project",
"subject_id": 0, # temp needs to be filled in by actual subject id
Expand All @@ -18,7 +19,7 @@
"enroll_deadline": future_date.strftime("%Y-%m-%dT%H:%M:%SZ"),
"capacity": 1,
"requirements": [{"mandatory": "false", "value": "*.pdf"}],
"publish_date": future_date.strftime("%Y-%m-%dT%H:%M:%SZ"),
"publish_date": past_date.strftime("%Y-%m-%dT%H:%M:%SZ"),
}


Expand Down

0 comments on commit e03f50d

Please sign in to comment.