16 lines
441 B
Python
Executable File
16 lines
441 B
Python
Executable File
import unittest
|
|
|
|
class Mock_Alert_Config() :
|
|
def __init__(self, id) :
|
|
self.id = id
|
|
|
|
class Test_Process_Prometheus(unittest.TestCase):
|
|
def test(self) :
|
|
import process_prometheus
|
|
from serviceapp import service
|
|
p = process_prometheus.Process_Prometheus(Mock_Alert_Config("a"), None, None, None)
|
|
self.assertEqual(p.get_target(), service.check_prometheus_alert)
|
|
|
|
if __name__ == "__main__" :
|
|
unittest.main()
|