mirror of
https://github.com/evennia/evennia.git
synced 2026-04-05 07:27:17 +02:00
Some cleanups of the unittests.
This commit is contained in:
parent
cafbb43f7a
commit
7571e3606d
5 changed files with 8 additions and 29 deletions
|
|
@ -491,7 +491,7 @@ def create_player(key, email, password,
|
|||
if not email:
|
||||
email = "dummy@dummy.com"
|
||||
if _PlayerDB.objects.filter(username__iexact=key):
|
||||
raise ValueError("A Player with this name already exists.")
|
||||
raise ValueError("A Player with the name '%s' already exists." % key)
|
||||
|
||||
# this handles a given dbref-relocate to a player.
|
||||
report_to = handle_dbref(report_to, _PlayerDB)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue