diff --git a/requirements.txt b/requirements.txt index 8281261b..80826986 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,6 +7,7 @@ urlgrabber pyxdg cmdln git+https://github.com/openSUSE/osc +influxdb # Dependencies for testing httpretty<0.9.6 diff --git a/tests/metrics_tests.py b/tests/metrics_tests.py new file mode 100644 index 00000000..5df03868 --- /dev/null +++ b/tests/metrics_tests.py @@ -0,0 +1,12 @@ +from OBSLocal import OBSLocalTestCase +import unittest + + +class TestMetrics(OBSLocalTestCase): + script = './metrics.py' + script_debug_osc = False + + def test_all(self): + self.osc_user('staging-bot') + self.execute_script(['--help']) # Avoids the need to influxdb instance. + self.assertOutput('metrics.py')