Yet another try at formatting subprocess call
This commit is contained in:
parent
3121354620
commit
9e6da7a0d1
1 changed files with 2 additions and 1 deletions
|
|
@ -13,7 +13,8 @@ class TestDatabase(TestCase):
|
||||||
def test_database(self):
|
def test_database(self):
|
||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
subprocess.call(["mysql", "-u", "root", '-e "SHOW TABLE STATUS;"', "evennia"])
|
# subprocess.call(["mysql", "-u", "root", '-e "SHOW TABLE STATUS;"', "evennia"], shell=True)
|
||||||
|
subprocess.call("mysql -u root -e \"SHOW TABLE STATUS;\" evennia", shell=True)
|
||||||
|
|
||||||
|
|
||||||
@patch("evennia.server.server.LoopingCall", new=MagicMock())
|
@patch("evennia.server.server.LoopingCall", new=MagicMock())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue