def test_get_params_port_1(self): """Test invalid""" from CommonServerPython import DemistoException from ExportIndicators import get_params_port params = {'longRunningPort': 'invalid'} with pytest.raises(DemistoException): get_params_port(params)
def test_get_params_port_3(self): """Test valid""" from ExportIndicators import get_params_port params = {'longRunningPort': '80'} assert get_params_port(params) == 80
def test_get_params_port_2(self): """Test empty""" from ExportIndicators import get_params_port params = {'longRunningPort': ''} with pytest.raises(ValueError): get_params_port(params)