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):
|
def __str__(self):
|
||||||
"""Provide a string representation for display, etc. purposes."""
|
"""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):
|
def calculate_datetime_to_next_level(self):
|
||||||
"""Determine when the next level will be reached (barring no penalties or logoffs).
|
"""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."""
|
"""Test the basic string summary."""
|
||||||
char = Character.objects.get(pk=1)
|
char = Character.objects.get(pk=1)
|
||||||
logger.debug(str(char))
|
logger.debug(str(char))
|
||||||
assert str(char) == "bss, level 0 tester"
|
assert str(char) == "bss, the level 0 tester"
|
||||||
|
|
||||||
def test_log_out(self):
|
def test_log_out(self):
|
||||||
"""Test basic log out functionality and end result."""
|
"""Test basic log out functionality and end result."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user