-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Perform client time sync on login (#1004)
* Perform client time sync on login Add current_time to the command welcome sent to the client on login. Closes #889 * Update test_login.py for client login sync Update tests to suit #60d684a8ad3441c89f947a7aad4efffe291f4de6: Add current_time to the command welcome sent to the client on login. * Fix E261 at least two spaces before inline comment Fix E261 at least two spaces before inline comment * Fix line comment I dont know wtf with that linter so just remove comments at all... * Migrate from datetime to server.timing Co-authored-by: Askaholic <[email protected]> * Migrate to server.timing * Add fixed_time(...) context manager for mocking server.timing. * Migrate from real-time login tests to fixed_time(...) context mock. * Fix flake8 alerts. * FDowngrade datetime to python 3.10. * Fixed typo in test_server_login_token_valid. * Changed fixed_time from context manager to callable fixture. See docstring. * Remove redundant imports. * Fix typos. * Fix typos. * Revert "Fix typos." This reverts commit 3202247. * Fix typos. --------- Co-authored-by: Askaholic <[email protected]>
- Loading branch information
1 parent
98271c4
commit 971ea3e
Showing
3 changed files
with
42 additions
and
4 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