From af03121e0ca822e4b12246f0d7e24e1e255931ec Mon Sep 17 00:00:00 2001 From: Alexey Lavrenuke Date: Thu, 5 Feb 2015 17:45:17 +0300 Subject: [PATCH] fix tests --- tests/ABTest.py | 6 +++--- tests/AggregatorTest.py | 4 ++-- tests/AutostopTest.py | 6 +++--- tests/CommonUtilsTest.py | 4 ++-- tests/ConfigManagerTest.py | 6 +++--- tests/ConsoleOnlinePluginTest.py | 6 +++--- tests/ConsoleWorkerTest.py | 20 ++++++++++---------- tests/Dummy.py | 2 +- tests/JMeterPluginTest.py | 6 +++--- tests/MonitoringTest.py | 13 +++++++------ tests/PhantomConfig_Test.py | 6 +++--- tests/PhantomPlugin_Test.py | 8 ++++---- tests/RCAssertTest.py | 4 ++-- tests/RCheckTest.py | 4 ++-- tests/ScreenBlocksTest.py | 6 +++--- tests/ShellExecPluginTest.py | 12 ++++++------ tests/StepperTest.py | 14 +++++++------- tests/TankCoreTest.py | 5 ++--- tests/TankTests.py | 4 ++-- tests/TotalCriteriasTest.py | 8 ++++---- tests/config/aggregator.conf | 2 +- tests/config/autostop.conf | 6 +++--- tests/config/console.conf | 2 +- tests/config/load.conf | 3 +-- tests/config/monitoring.conf | 7 ++++--- tests/config/phantom.conf | 4 ++-- tests/config/phantom_double.conf | 4 ++-- tests/config_err/load_err.conf | 6 +++--- tests/full/load.ini | 11 ++++++----- tests/metrics_test.py | 2 +- 30 files changed, 96 insertions(+), 95 deletions(-) diff --git a/tests/ABTest.py b/tests/ABTest.py index 822743f..ea1e9c0 100644 --- a/tests/ABTest.py +++ b/tests/ABTest.py @@ -1,7 +1,7 @@ -from Tests.TankTests import TankTestCase +from TankTests import TankTestCase import unittest -from Tank.Plugins.ApacheBenchmark import ABReader, ApacheBenchmarkPlugin -from Tank.Plugins.Aggregator import AggregatorPlugin +from yandextank.plugins.ApacheBenchmark import ABReader, ApacheBenchmarkPlugin +from yandextank.plugins.Aggregator import AggregatorPlugin class ABTestCase(TankTestCase): def setUp(self): diff --git a/tests/AggregatorTest.py b/tests/AggregatorTest.py index a1f8f51..021959b 100644 --- a/tests/AggregatorTest.py +++ b/tests/AggregatorTest.py @@ -1,9 +1,9 @@ import time import unittest -from Tank.Plugins.Aggregator import AggregatorPlugin, AbstractReader, \ +from yandextank.plugins.Aggregator import AggregatorPlugin, AbstractReader, \ SecondAggregateDataTotalItem -from Tests.TankTests import TankTestCase +from TankTests import TankTestCase class AggregatorPluginTestCase(TankTestCase): diff --git a/tests/AutostopTest.py b/tests/AutostopTest.py index 7147d07..f252426 100644 --- a/tests/AutostopTest.py +++ b/tests/AutostopTest.py @@ -1,6 +1,6 @@ -from Tank.Plugins.Aggregator import SecondAggregateData -from Tank.Plugins.Autostop import AutostopPlugin -from Tests.TankTests import TankTestCase +from yandextank.plugins.Aggregator import SecondAggregateData +from yandextank.plugins.Autostop import AutostopPlugin +from TankTests import TankTestCase import tempfile import unittest diff --git a/tests/CommonUtilsTest.py b/tests/CommonUtilsTest.py index d2a568b..b5e7f16 100644 --- a/tests/CommonUtilsTest.py +++ b/tests/CommonUtilsTest.py @@ -1,7 +1,7 @@ import unittest -from Tests.TankTests import TankTestCase -import tankcore +from TankTests import TankTestCase +import yandextank.core as tankcore class CommonUtilsTest(TankTestCase): diff --git a/tests/ConfigManagerTest.py b/tests/ConfigManagerTest.py index cd8777a..76f1799 100644 --- a/tests/ConfigManagerTest.py +++ b/tests/ConfigManagerTest.py @@ -1,6 +1,6 @@ -from Tank.ConsoleWorker import ConsoleTank -from Tests.TankTests import TankTestCase, FakeOptions -from tankcore import ConfigManager +from yandextank.core.consoleworker import ConsoleTank +from TankTests import TankTestCase, FakeOptions +from yandextank.core import ConfigManager import tempfile import unittest diff --git a/tests/ConsoleOnlinePluginTest.py b/tests/ConsoleOnlinePluginTest.py index 540e768..5de2975 100644 --- a/tests/ConsoleOnlinePluginTest.py +++ b/tests/ConsoleOnlinePluginTest.py @@ -1,9 +1,9 @@ -from Tank.Plugins.ConsoleOnline import ConsoleOnlinePlugin, AbstractInfoWidget, \ +from yandextank.plugins.ConsoleOnline import ConsoleOnlinePlugin, AbstractInfoWidget, \ RealConsoleMarkup -from Tests.TankTests import TankTestCase +from TankTests import TankTestCase import tempfile import unittest -from Tank.Plugins.ConsoleScreen import krutilka +from yandextank.plugins.ConsoleScreen import krutilka class FakeConsoleMarkup(RealConsoleMarkup): clear = "\n[clear]\n" diff --git a/tests/ConsoleWorkerTest.py b/tests/ConsoleWorkerTest.py index 4f428ec..6f7ca9b 100644 --- a/tests/ConsoleWorkerTest.py +++ b/tests/ConsoleWorkerTest.py @@ -1,24 +1,25 @@ -from Tank.ConsoleWorker import ConsoleTank -from Tank.Plugins.ConsoleOnline import ConsoleOnlinePlugin -from Tests.ConsoleOnlinePluginTest import FakeConsoleMarkup -from Tests.TankTests import FakeOptions +from yandextank.core.consoleworker import ConsoleTank +from yandextank.plugins.ConsoleOnline import ConsoleOnlinePlugin +from ConsoleOnlinePluginTest import FakeConsoleMarkup +from TankTests import FakeOptions import TankTests import logging import unittest import datetime -class ConsoleWorkerTestCase(TankTests.TankTestCase): +class ConsoleWorkerTestCase(TankTests.TankTestCase): + def setUp(self): opts = FakeOptions() opts.no_rc = False - opts.scheduled_start=datetime.datetime.now().strftime('%H:%M:%S') + opts.scheduled_start = datetime.datetime.now().strftime('%H:%M:%S') self.foo = ConsoleTank(opts, None) self.foo.set_baseconfigs_dir('full') def tearDown(self): del self.foo - self.foo = None + self.foo = None def test_perform(self): self.foo.configure() @@ -28,11 +29,10 @@ class ConsoleWorkerTestCase(TankTests.TankTestCase): console.console_markup = FakeConsoleMarkup() except: pass - + if self.foo.perform_test() != 0: raise RuntimeError() - - + def test_option_override(self): options = FakeOptions() options.config = ["config/phantom.conf"] diff --git a/tests/Dummy.py b/tests/Dummy.py index dcc2574..2e39642 100644 --- a/tests/Dummy.py +++ b/tests/Dummy.py @@ -1,4 +1,4 @@ -from tankcore import AbstractPlugin +from yandextank.core import AbstractPlugin import time class DummyPlugin(AbstractPlugin): diff --git a/tests/JMeterPluginTest.py b/tests/JMeterPluginTest.py index f7f9a1a..a6555e9 100644 --- a/tests/JMeterPluginTest.py +++ b/tests/JMeterPluginTest.py @@ -2,9 +2,9 @@ import logging import time import unittest -from Tank.Plugins.JMeter import JMeterPlugin, JMeterReader -from Tests.TankTests import TankTestCase -from Tank.Plugins.Aggregator import AggregatorPlugin +from yandextank.plugins.JMeter import JMeterPlugin, JMeterReader +from TankTests import TankTestCase +from yandextank.plugins.Aggregator import AggregatorPlugin class JMeterPluginTestCase(TankTestCase): diff --git a/tests/MonitoringTest.py b/tests/MonitoringTest.py index e56f75d..124222d 100644 --- a/tests/MonitoringTest.py +++ b/tests/MonitoringTest.py @@ -1,16 +1,17 @@ -from Tank.MonCollector.collector import MonitoringCollector, \ +from yandextank.plugins.Monitoring.collector import MonitoringCollector, \ MonitoringDataListener, SSHWrapper -from Tank.Plugins.ConsoleOnline import Screen -from Tank.Plugins.Monitoring import MonitoringPlugin, MonitoringWidget -from Tests.ConsoleOnlinePluginTest import FakeConsoleMarkup -from Tests.TankTests import TankTestCase +from yandextank.plugins.ConsoleOnline import Screen +from yandextank.plugins.Monitoring import MonitoringPlugin, MonitoringWidget +from ConsoleOnlinePluginTest import FakeConsoleMarkup +from TankTests import TankTestCase import logging import time import tempfile + class MonitoringCollectorTestCase(TankTestCase): data = None - + def test_collector(self): mon = MonitoringCollector() mon.config = "config/mon1.conf" diff --git a/tests/PhantomConfig_Test.py b/tests/PhantomConfig_Test.py index c5bcab3..6e0cbe2 100644 --- a/tests/PhantomConfig_Test.py +++ b/tests/PhantomConfig_Test.py @@ -2,9 +2,9 @@ import socket import unittest import logging -from Tank.Plugins.Phantom import PhantomConfig, PhantomPlugin -from Tests.TankTests import TankTestCase -from Tank.Plugins.PhantomUtils import StepperWrapper, AddressWizard +from yandextank.plugins.Phantom import PhantomConfig, PhantomPlugin +from TankTests import TankTestCase +from yandextank.plugins.PhantomUtils import StepperWrapper, AddressWizard class PhantomConfigTestCase(TankTestCase): diff --git a/tests/PhantomPlugin_Test.py b/tests/PhantomPlugin_Test.py index 827390d..aae3b30 100644 --- a/tests/PhantomPlugin_Test.py +++ b/tests/PhantomPlugin_Test.py @@ -2,10 +2,10 @@ import os import time import unittest -from Tank.Plugins.Aggregator import AggregatorPlugin, SecondAggregateData -from Tank.Plugins.Phantom import PhantomPlugin, PhantomReader -from Tests.TankTests import TankTestCase -from Tank.Plugins.PhantomUtils import StepperWrapper +from yandextank.plugins.Aggregator import AggregatorPlugin, SecondAggregateData +from yandextank.plugins.Phantom import PhantomPlugin, PhantomReader +from TankTests import TankTestCase +from yandextank.plugins.PhantomUtils import StepperWrapper class PhantomPluginTestCase(TankTestCase): diff --git a/tests/RCAssertTest.py b/tests/RCAssertTest.py index 31a7e32..a25fdaa 100644 --- a/tests/RCAssertTest.py +++ b/tests/RCAssertTest.py @@ -1,6 +1,6 @@ -from Tests.TankTests import TankTestCase +from TankTests import TankTestCase import unittest -from Tank.Plugins.RCAssert import RCAssertPlugin +from yandextank.plugins.RCAssert import RCAssertPlugin class RCAssertTestCase(TankTestCase): def setUp(self): diff --git a/tests/RCheckTest.py b/tests/RCheckTest.py index 5737f7a..f77f1c1 100644 --- a/tests/RCheckTest.py +++ b/tests/RCheckTest.py @@ -1,8 +1,8 @@ import unittest -from Tank.Plugins.ResourceCheck import ResourceCheckPlugin +from yandextank.plugins.ResourceCheck import ResourceCheckPlugin -from Tests.TankTests import TankTestCase +from TankTests import TankTestCase class RCheckTestCase(TankTestCase): diff --git a/tests/ScreenBlocksTest.py b/tests/ScreenBlocksTest.py index d0f2275..dc4b7b2 100644 --- a/tests/ScreenBlocksTest.py +++ b/tests/ScreenBlocksTest.py @@ -1,6 +1,6 @@ -from Tank.Plugins.ConsoleScreen import Screen, CurrentHTTPBlock, CurrentNetBlock -from Tests.ConsoleOnlinePluginTest import FakeConsoleMarkup -from Tests.TankTests import TankTestCase +from yandextank.plugins.ConsoleScreen import Screen, CurrentHTTPBlock, CurrentNetBlock +from ConsoleOnlinePluginTest import FakeConsoleMarkup +from TankTests import TankTestCase class BlocksTestCase(TankTestCase): def test_HTTP(self): diff --git a/tests/ShellExecPluginTest.py b/tests/ShellExecPluginTest.py index ca3e36a..b7879f6 100644 --- a/tests/ShellExecPluginTest.py +++ b/tests/ShellExecPluginTest.py @@ -1,12 +1,12 @@ -from Tank.Plugins.ShellExec import ShellExecPlugin -from Tests.TankTests import TankTestCase +from yandextank.plugins.ShellExec import ShellExecPlugin +from TankTests import TankTestCase import logging import select import subprocess -import tempfile import unittest -class ShellExecPluginTestCase(TankTestCase): + +class ShellExecPluginTestCase(TankTestCase): def setUp(self): core = self.get_core() core.load_configs(['config/shellexec.conf']) @@ -21,11 +21,11 @@ class ShellExecPluginTestCase(TankTestCase): self.foo.prepare_test() self.foo.start_test() self.foo.end_test(0) - + def test_select(self): pipes = subprocess.Popen(["pwd"], stdout=subprocess.PIPE) r, w, x = select.select([pipes.stdout], [], [], 1) logging.info("selected: %s %s %s", r, w, x) - + if __name__ == '__main__': unittest.main() diff --git a/tests/StepperTest.py b/tests/StepperTest.py index 823988b..ec41685 100644 --- a/tests/StepperTest.py +++ b/tests/StepperTest.py @@ -1,9 +1,9 @@ import tempfile import os -from Tank.stepper import Stepper -from Tank.stepper.format import StpdReader -from Tests.TankTests import TankTestCase +from yandextank.stepper import Stepper +from yandextank.stepper.format import StpdReader +from TankTests import TankTestCase class StepperTestCase(TankTestCase): @@ -94,7 +94,7 @@ class StepperTestCase(TankTestCase): ).write(stpd_file) res = open(temp_stpd, 'r').read() self.assertNotEquals("", res) - self.assertEquals(1900, os.path.getsize(temp_stpd)) + self.assertEquals(1904, os.path.getsize(temp_stpd)) def test_manual_inst(self): @@ -126,7 +126,7 @@ class StepperTestCase(TankTestCase): ).write(stpd_file) res = open(temp_stpd, 'r').read() self.assertNotEquals("", res) - self.assertEquals(258, os.path.getsize(temp_stpd)) + self.assertEquals(262, os.path.getsize(temp_stpd)) def test_default(self): temp_stpd = tempfile.mkstemp()[1] @@ -161,7 +161,7 @@ class StepperTestCase(TankTestCase): self.assertEquals(1459, os.path.getsize(temp_stpd)) def test_empty_uri(self): - from Tank.stepper.module_exceptions import AmmoFileError + from yandextank.stepper.module_exceptions import AmmoFileError temp_stpd = tempfile.mkstemp()[1] with open(temp_stpd, 'w') as stpd_file: with self.assertRaises(AmmoFileError): @@ -196,7 +196,7 @@ class StepperTestCase(TankTestCase): self.assertEquals(len(list(sr)), 10) def test_bad_stpd_reader(self): - from Tank.stepper.module_exceptions import StpdFileError + from yandextank.stepper.module_exceptions import StpdFileError sr = StpdReader("data/bad.ammo.stpd") with self.assertRaises(StpdFileError): list(sr) diff --git a/tests/TankCoreTest.py b/tests/TankCoreTest.py index 2ba79c4..70b4928 100644 --- a/tests/TankCoreTest.py +++ b/tests/TankCoreTest.py @@ -1,7 +1,7 @@ import unittest -from Tests.TankTests import TankTestCase -import tankcore +from TankTests import TankTestCase +import yandextank.core as tankcore class TankCoreTestCase(TankTestCase): @@ -43,4 +43,3 @@ class TankCoreTestCase(TankTestCase): if __name__ == '__main__': unittest.main() - diff --git a/tests/TankTests.py b/tests/TankTests.py index 4f7e971..391574a 100644 --- a/tests/TankTests.py +++ b/tests/TankTests.py @@ -3,9 +3,9 @@ import sys import tempfile import unittest -from Tank.Plugins.Aggregator import SecondAggregateData, \ +from yandextank.plugins.Aggregator import SecondAggregateData, \ SecondAggregateDataTotalItem -from tankcore import TankCore +from yandextank.core import TankCore class TankTestCase(unittest.TestCase): diff --git a/tests/TotalCriteriasTest.py b/tests/TotalCriteriasTest.py index 7f59b31..f1e62e8 100644 --- a/tests/TotalCriteriasTest.py +++ b/tests/TotalCriteriasTest.py @@ -1,9 +1,9 @@ -from Tank.Plugins.Aggregator import SecondAggregateData, \ +from yandextank.plugins.Aggregator import SecondAggregateData, \ SecondAggregateDataTotalItem -from Tank.Plugins.TotalAutostop import TotalFracTimeCriteria, TotalHTTPCodesCriteria, TotalNegativeHTTPCodesCriteria, TotalNetCodesCriteria, TotalNegativeNetCodesCriteria, TotalHTTPTrendCriteria, QuantileOfSaturationCriteria -from Tests.TankTests import TankTestCase +from yandextank.plugins.TotalAutostop import TotalFracTimeCriteria, TotalHTTPCodesCriteria, TotalNegativeHTTPCodesCriteria, TotalNetCodesCriteria, TotalNegativeNetCodesCriteria, TotalHTTPTrendCriteria, QuantileOfSaturationCriteria +from TankTests import TankTestCase import unittest -from Tank.Plugins.Autostop import AutostopPlugin +from yandextank.plugins.Autostop import AutostopPlugin class TotalCriteriasTest(TankTestCase): def setUp(self): diff --git a/tests/config/aggregator.conf b/tests/config/aggregator.conf index 73475a1..71e5434 100644 --- a/tests/config/aggregator.conf +++ b/tests/config/aggregator.conf @@ -1,5 +1,5 @@ [tank] -#plugin_console=Tank/Plugins/ConsoleOnline.py +#plugin_console=yandextank.plugins.ConsoleOnline [phantom] cases = 'search_%D0%BF%D0%BE%D1%80%D0%BD%D0%BE_users' 'search' 'search_%D0%BD%D1%8E_users' 'search_%D1%8D%D1%80%D0%BE%D1%82%D0%B8%D0%BA%D0%B0_users' 'search_%D1%86%D0%B2%D0%B5%D1%82%D1%8B_users' 'search_%D0%B1%D0%B5%D0%B7%20%D1%82%D1%80%D1%83%D1%81%D0%B8%D0%BA%D0%BE%D0%B2_users' diff --git a/tests/config/autostop.conf b/tests/config/autostop.conf index 085c6e4..1427f76 100644 --- a/tests/config/autostop.conf +++ b/tests/config/autostop.conf @@ -1,7 +1,7 @@ [tank] -plugin_aggreg=Tank/Plugins/Aggregator.py -plugin_phantom=Tank/Plugins/Phantom.py -plugin_console=Tank/Plugins/ConsoleOnline.py +plugin_aggreg=yandextank.plugins.Aggregator +plugin_phantom=yandextank.plugins.Phantom +plugin_console=yandextank.plugins.ConsoleOnline [phantom] cases = 'search_%D0%BF%D0%BE%D1%80%D0%BD%D0%BE_users' 'search' 'search_%D0%BD%D1%8E_users' 'search_%D1%8D%D1%80%D0%BE%D1%82%D0%B8%D0%BA%D0%B0_users' 'search_%D1%86%D0%B2%D0%B5%D1%82%D1%8B_users' 'search_%D0%B1%D0%B5%D0%B7%20%D1%82%D1%80%D1%83%D1%81%D0%B8%D0%BA%D0%BE%D0%B2_users' diff --git a/tests/config/console.conf b/tests/config/console.conf index 7bf7900..b8750e8 100644 --- a/tests/config/console.conf +++ b/tests/config/console.conf @@ -1,5 +1,5 @@ [tank] -plugin_aggreg=Tank/Plugins/Aggregator.py +plugin_aggreg=yandextank.plugins.Aggregator [phantom] cases = 'search_%D0%BF%D0%BE%D1%80%D0%BD%D0%BE_users' 'search' 'search_%D0%BD%D1%8E_users' 'search_%D1%8D%D1%80%D0%BE%D1%82%D0%B8%D0%BA%D0%B0_users' 'search_%D1%86%D0%B2%D0%B5%D1%82%D1%8B_users' 'search_%D0%B1%D0%B5%D0%B7%20%D1%82%D1%80%D1%83%D1%81%D0%B8%D0%BA%D0%BE%D0%B2_users' diff --git a/tests/config/load.conf b/tests/config/load.conf index 5e4b5d6..0842d29 100644 --- a/tests/config/load.conf +++ b/tests/config/load.conf @@ -3,8 +3,7 @@ dotted.test=passed [tank] someoption=somevalue -plugin_ShellExec=Tank/Plugins/ShellExec.py -plugin_ShellExec2=Tests/Dummy.py +plugin_ShellExec=yandextank.plugins.ShellExec plugin_disabled= someoption=somevalue diff --git a/tests/config/monitoring.conf b/tests/config/monitoring.conf index e9bbad2..6cb10af 100644 --- a/tests/config/monitoring.conf +++ b/tests/config/monitoring.conf @@ -1,7 +1,8 @@ [tank] -plugin_phantom=Tank/Plugins/Phantom.py -plugin_console=Tank/Plugins/ConsoleOnline.py -plugin_aggreg=Tank/Plugins/Aggregator.py +plugin_phantom=yandextank.plugins.Phantom +plugin_console=yandextank.plugins.ConsoleOnline +plugin_aggreg=yandextank.plugins.Aggregator [phantom] ammofile=data/dummy.ammo +connection_test=0 diff --git a/tests/config/phantom.conf b/tests/config/phantom.conf index 140151f..106c1d4 100644 --- a/tests/config/phantom.conf +++ b/tests/config/phantom.conf @@ -1,6 +1,6 @@ [tank] -plugin_aggreg=Tank/Plugins/Aggregator.py -plugin_console=Tank/Plugins/ConsoleOnline.py +plugin_aggreg=yandextank.plugins.Aggregator +plugin_console=yandextank.plugins.ConsoleOnline [phantom] phantom_path=phantom diff --git a/tests/config/phantom_double.conf b/tests/config/phantom_double.conf index bccc0c4..0045f9e 100644 --- a/tests/config/phantom_double.conf +++ b/tests/config/phantom_double.conf @@ -1,6 +1,6 @@ [tank] -plugin_aggreg=Tank/Plugins/Aggregator.py -plugin_console=Tank/Plugins/ConsoleOnline.py +plugin_aggreg=yandextank.plugins.Aggregator +plugin_console=yandextank.plugins.ConsoleOnline [phantom] phantom_path=phantom diff --git a/tests/config_err/load_err.conf b/tests/config_err/load_err.conf index 762f35d..71254a5 100644 --- a/tests/config_err/load_err.conf +++ b/tests/config_err/load_err.conf @@ -1,4 +1,4 @@ [tank] -plugin_ShellExec=Tank/Plugins/ShellExec.py -plugin_Dummy=Tank/Plugins/Dummy.py -plugin_ShellExec3=Tank/Plugins/ShellExec3.py +plugin_ShellExec=yandextank.plugins.ShellExec +plugin_Dummy=Dummy +plugin_ShellExec3=yandextank.plugins.ShellExec3 diff --git a/tests/full/load.ini b/tests/full/load.ini index ab3c7af..556920d 100644 --- a/tests/full/load.ini +++ b/tests/full/load.ini @@ -1,8 +1,8 @@ [tank] -plugin_ShellExec=Tank/Plugins/ShellExec.py -plugin_phantom=Tank/Plugins/Phantom.py -plugin_aggreg=Tank/Plugins/Aggregator.py -plugin_console=Tank/Plugins/ConsoleOnline.py +plugin_ShellExec=yandextank.plugins.ShellExec +plugin_phantom=yandextank.plugins.Phantom +plugin_aggreg=yandextank.plugins.Aggregator +plugin_console=yandextank.plugins.ConsoleOnline [aggregator] time_periods=1 5 10 50 100ms 500 1s @@ -11,9 +11,10 @@ time_periods=1 5 10 50 100ms 500 1s ammofile=data/dummy.ammo instances_schedule=line(1,10,1m) #loop=100 -ammo_limit=100 +ammo_limit=10 load=const(1,1) line(1,50,10) use_caching=1 +connection_test=0 [shellexec] prepare=uname -a diff --git a/tests/metrics_test.py b/tests/metrics_test.py index 6eb7182..60cb178 100644 --- a/tests/metrics_test.py +++ b/tests/metrics_test.py @@ -5,7 +5,7 @@ import time import unittest import base64 -from Tank.MonCollector.agent.agent import CpuStat, Custom, Disk, NetTcp, NetTxRx +from yandextank.plugins.Monitoring.agent.agent import CpuStat, Custom, Disk, NetTcp, NetTxRx if __name__ == '__main__':