mirror of
https://github.com/SeedSigner/seedsigner.git
synced 2026-10-05 15:08:25 +00:00
rename and bugfix
This commit is contained in:
@@ -140,7 +140,7 @@ class Version:
|
|||||||
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_last_edit(cls) -> datetime:
|
def get_last_edit_timestamp(cls) -> datetime:
|
||||||
"""
|
"""
|
||||||
Recursively scan the src/ directory for the most recent python file edit time.
|
Recursively scan the src/ directory for the most recent python file edit time.
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -333,7 +333,7 @@ class VersionView(View):
|
|||||||
self.run_screen(
|
self.run_screen(
|
||||||
settings_screens.VersionScreen,
|
settings_screens.VersionScreen,
|
||||||
version=Version.get_version(),
|
version=Version.get_version(),
|
||||||
last_edit=Version.get_last_src_edit(),
|
last_edit=Version.get_last_edit_timestamp(),
|
||||||
)
|
)
|
||||||
|
|
||||||
return Destination(SettingsMenuView)
|
return Destination(SettingsMenuView)
|
||||||
@@ -68,12 +68,12 @@ class TestVersion(BaseTest):
|
|||||||
assert version == tag_name
|
assert version == tag_name
|
||||||
|
|
||||||
|
|
||||||
def test_get_last_src_edit(self):
|
def test_get_last_edit(self):
|
||||||
"""
|
"""
|
||||||
Test that get_last_src_edit returns a sane datetime object. Assumes the system
|
Test that get_last_src_edit returns a sane datetime object. Assumes the system
|
||||||
running this test has a reasonably correct system time.
|
running this test has a reasonably correct system time.
|
||||||
"""
|
"""
|
||||||
last_edit = Version.get_last_src_edit()
|
last_edit = Version.get_last_edit_timestamp()
|
||||||
assert isinstance(last_edit, datetime)
|
assert isinstance(last_edit, datetime)
|
||||||
|
|
||||||
# Has to be more recent than the first SeedSigner v0.0.1 release
|
# Has to be more recent than the first SeedSigner v0.0.1 release
|
||||||
|
|||||||
Reference in New Issue
Block a user