mirror of
https://github.com/valitydev/yandex-tank.git
synced 2024-11-08 11:13:51 +00:00
a31849c6c5
Locking functionality pushed down to Core
25 lines
625 B
Python
25 lines
625 B
Python
from Tank.ConsoleWorker import ConsoleTank
|
|
from Tests.TankTests import TankTestCase, FakeOptions
|
|
from tankcore import ConfigManager
|
|
import tempfile
|
|
import unittest
|
|
|
|
class ConfigManagerTestCase(TankTestCase):
|
|
def setUp(self):
|
|
tank = ConsoleTank(FakeOptions(), None)
|
|
tank.init_logging()
|
|
self.foo = ConfigManager()
|
|
|
|
def tearDown(self):
|
|
del self.foo
|
|
self.foo = None
|
|
|
|
def test_load_files(self):
|
|
confs = ['config/load_1.conf', 'config/load_2.conf']
|
|
self.foo.load_files(confs)
|
|
self.foo.flush()
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|
|
|