mirror of
https://github.com/evennia/evennia.git
synced 2026-03-31 04:57:16 +02:00
Fix unit test issue with server name when running from mygame settings
This commit is contained in:
parent
d459a9b0da
commit
1ab8ff76ef
2 changed files with 4 additions and 2 deletions
|
|
@ -27,14 +27,15 @@ before_install:
|
|||
install:
|
||||
- pip install psycopg2-binary
|
||||
- pip install mysqlclient
|
||||
- pip install -e .
|
||||
- pip install coveralls
|
||||
- pip install -e .
|
||||
|
||||
before_script:
|
||||
- evennia --init testing_mygame
|
||||
- cp .travis/${TESTING_DB}_settings.py testing_mygame/server/conf/settings.py
|
||||
- cd testing_mygame
|
||||
- evennia migrate
|
||||
- evennia collectstatic
|
||||
|
||||
script:
|
||||
- coverage run --source=../evennia --omit=*/migrations/*,*/urls.py,*/test*.py,*.sh,*.txt,*.md,*.pyc,*.service ../bin/unix/evennia test --settings=settings evennia
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
Module containing the test cases for the Audit system.
|
||||
"""
|
||||
|
||||
from anything import Anything
|
||||
from django.test import override_settings
|
||||
from django.conf import settings
|
||||
from evennia.utils.test_resources import EvenniaTest
|
||||
|
|
@ -85,7 +86,7 @@ class AuditingTest(EvenniaTest):
|
|||
self.assertEqual(obj, {
|
||||
'direction': 'RCV',
|
||||
'protocol': 'telnet',
|
||||
'application': 'Evennia',
|
||||
'application': Anything, # this will change if running tests from the game dir
|
||||
'text': 'hello'
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue