-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Print useful information when the chain is not yet started
- Loading branch information
Showing
4 changed files
with
114 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from eth_validator_watcher.utils import convert_seconds_to_dhms | ||
|
||
|
||
def test_convert_secondes_to_dhms() -> None: | ||
assert convert_seconds_to_dhms(0) == (0, 0, 0, 0) | ||
assert convert_seconds_to_dhms(61) == (0, 0, 1, 1) | ||
assert convert_seconds_to_dhms(3601) == (0, 1, 0, 1) | ||
assert convert_seconds_to_dhms(86462) == (1, 0, 1, 2) |