mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-26 03:54:08 +01:00
Added changes for world.testing and inserted 'plugins' into the sys.path.
This commit is contained in:
parent
96d5355219
commit
2c97e73617
@ -32,6 +32,7 @@
|
|||||||
import sys
|
import sys
|
||||||
sys.path.insert(0, 'src')
|
sys.path.insert(0, 'src')
|
||||||
sys.path.insert(0, 'test')
|
sys.path.insert(0, 'test')
|
||||||
|
sys.path.insert(0, 'plugins')
|
||||||
|
|
||||||
from fix import *
|
from fix import *
|
||||||
|
|
||||||
@ -40,6 +41,7 @@ import glob
|
|||||||
import os.path
|
import os.path
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
import world
|
||||||
import ircmsgs
|
import ircmsgs
|
||||||
|
|
||||||
fd = file(os.path.join('test', 'rfc2812.msgs'), 'r')
|
fd = file(os.path.join('test', 'rfc2812.msgs'), 'r')
|
||||||
@ -53,6 +55,7 @@ def getMsgs(command):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
world.testing = True
|
||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1:
|
||||||
files = sys.argv[1:]
|
files = sys.argv[1:]
|
||||||
else:
|
else:
|
||||||
@ -61,3 +64,4 @@ if __name__ == '__main__':
|
|||||||
suite = unittest.defaultTestLoader.loadTestsFromNames(names)
|
suite = unittest.defaultTestLoader.loadTestsFromNames(names)
|
||||||
runner = unittest.TextTestRunner(verbosity=2)
|
runner = unittest.TextTestRunner(verbosity=2)
|
||||||
runner.run(suite)
|
runner.run(suite)
|
||||||
|
world.testing = False
|
||||||
|
Loading…
Reference in New Issue
Block a user