Test output of query in mysql
This commit is contained in:
parent
54e3371e3f
commit
b16bf45de1
2 changed files with 3 additions and 2 deletions
|
|
@ -39,7 +39,6 @@ before_script:
|
||||||
- evennia collectstatic --noinput
|
- evennia collectstatic --noinput
|
||||||
- mysql -u root -e "SHOW TABLE STATUS;" evennia
|
- mysql -u root -e "SHOW TABLE STATUS;" evennia
|
||||||
- mysql -u root -e "SHOW FULL COLUMNS FROM accounts_accountdb;" evennia
|
- mysql -u root -e "SHOW FULL COLUMNS FROM accounts_accountdb;" evennia
|
||||||
- mysql -u root -e "SHOW FULL COLUMNS FROM accounts_accountdb_user_permissions;" evennia
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- coverage run --source=../evennia --omit=*/migrations/*,*/urls.py,*/test*.py,*.sh,*.txt,*.md,*.pyc,*.service ../bin/unix/evennia test --settings=settings --keepdb evennia
|
- coverage run --source=../evennia --omit=*/migrations/*,*/urls.py,*/test*.py,*.sh,*.txt,*.md,*.pyc,*.service ../bin/unix/evennia test --settings=settings --keepdb evennia
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,9 @@ class EvenniaUsernameAvailabilityValidator:
|
||||||
)
|
)
|
||||||
|
|
||||||
# Check database
|
# Check database
|
||||||
exists = AccountDB.objects.filter(username__iexact=username).exists()
|
exists = AccountDB.objects.filter(username__iexact=username)
|
||||||
|
print("\nusernamevalidator query: {}".format(exists.query))
|
||||||
|
exists = exists.exists()
|
||||||
if exists:
|
if exists:
|
||||||
raise ValidationError(
|
raise ValidationError(
|
||||||
_('Sorry, that username is already taken.'),
|
_('Sorry, that username is already taken.'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue