tweak the formatting of the character summary string
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
parent
f941762f26
commit
d322429157
|
@ -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).
|
||||
|
|
|
@ -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."""
|
||||
|
|
Loading…
Reference in New Issue