-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First schedule should be triggered after interval hours and Handle Ad…
…min GET in a safer way (#437) * First schedule should be triggered after interval hours * Handle Admin GET in a safer way * Making reimbursable expense object nullable and checking edge cases (#438) * Making reimbursbale expense object nullable and checking edge cases for the same * comment resolved * resolving comments * all comment resolved * added code in test for the changes * added test code for the changes --------- Co-authored-by: Ashutosh619-sudo <[email protected]> --------- Co-authored-by: Ashutosh619-sudo <[email protected]>
- Loading branch information
1 parent
023c901
commit 4b37401
Showing
7 changed files
with
30 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -317,9 +317,13 @@ def test_post_workspace_schedule(api_client, access_token): | |
api_client.credentials(HTTP_AUTHORIZATION='Bearer {}'.format(access_token)) | ||
|
||
response = api_client.post(url, { | ||
'schedule_enabled': False, | ||
'hours': 0 | ||
}) | ||
"hours": 2, | ||
"schedule_enabled": True, | ||
"added_email": None, | ||
"selected_email": [ | ||
"[email protected]" | ||
] | ||
}, format='json') | ||
assert response.status_code == 200 | ||
|
||
def test_get_workspace_schedule(api_client, access_token): | ||
|