tweak the formatting of the character summary string

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
Brian S. Stephan 2024-05-14 10:36:10 -05:00
parent f941762f26
commit d322429157
Signed by: bss
GPG Key ID: 3DE06D3180895FCB
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ class Character(models.Model):
def __str__(self):
"""Provide a string representation for display, etc. purposes."""
return f"{self.name}, level {self.level} {self.character_class}"
return f"{self.name}, the level {self.level} {self.character_class}"
def calculate_datetime_to_next_level(self):
"""Determine when the next level will be reached (barring no penalties or logoffs).

View File

@ -24,7 +24,7 @@ class CharacterTest(TestCase):
"""Test the basic string summary."""
char = Character.objects.get(pk=1)
logger.debug(str(char))
assert str(char) == "bss, level 0 tester"
assert str(char) == "bss, the level 0 tester"
def test_log_out(self):
"""Test basic log out functionality and end result."""