Embed a mysql query from test suite
This commit is contained in:
parent
6c1f833efc
commit
98df7ce2cb
1 changed files with 8 additions and 0 deletions
|
|
@ -9,6 +9,14 @@ from django.test import override_settings
|
||||||
from evennia.utils.test_resources import unload_module
|
from evennia.utils.test_resources import unload_module
|
||||||
|
|
||||||
|
|
||||||
|
class TestDatabase(TestCase):
|
||||||
|
def test_database(self):
|
||||||
|
|
||||||
|
import subprocess
|
||||||
|
subprocess.call(["mysql", "-u root", '-e "SHOW TABLE STATUS;"', "evennia"])
|
||||||
|
subprocess.call(["mysql", "-u root", '-e "SHOW TABLE STATUS;"', "test_evennia"])
|
||||||
|
|
||||||
|
|
||||||
@patch("evennia.server.server.LoopingCall", new=MagicMock())
|
@patch("evennia.server.server.LoopingCall", new=MagicMock())
|
||||||
class TestServer(TestCase):
|
class TestServer(TestCase):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue