mirror of
https://github.com/valitydev/yandex-tank.git
synced 2024-11-06 10:25:17 +00:00
25 lines
637 B
Python
25 lines
637 B
Python
from yandextank.core.consoleworker import ConsoleTank
|
|
from Tank_Test import TankTestCase, FakeOptions
|
|
from yandextank.core 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()
|
|
|