rename and bugfix

This commit is contained in:
kdmukai
2025-12-20 14:34:52 -06:00
parent 3f7803fa15
commit 657167ac61
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ class Version:
@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.
"""
+1 -1
View File
@@ -333,7 +333,7 @@ class VersionView(View):
self.run_screen(
settings_screens.VersionScreen,
version=Version.get_version(),
last_edit=Version.get_last_src_edit(),
last_edit=Version.get_last_edit_timestamp(),
)
return Destination(SettingsMenuView)
+2 -2
View File
@@ -68,12 +68,12 @@ class TestVersion(BaseTest):
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
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)
# Has to be more recent than the first SeedSigner v0.0.1 release