From 4ac15ab8421c2c92322e715ffd1550203b212a21 Mon Sep 17 00:00:00 2001 From: kongr45gpen Date: Sat, 6 Jan 2018 13:18:18 +0200 Subject: Add configuration value to specify the binding address of the HTTP server Implements #24 --- test.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'test.py') diff --git a/test.py b/test.py index 443f548..67aa1f4 100644 --- a/test.py +++ b/test.py @@ -7,17 +7,19 @@ from local.testing.ExpectationPluginTestCase import * class GithubTestCase(ExpectationPluginTestCase): plugins = ('Github',) port = 27230 + address = '127.0.0.1' files = {} config = { 'plugins.github.shortUrl': False, 'plugins.github.hidePush': False } def setUp(self): - # Set a different port from the default one to make testing while a - # supybot-github instance is running possible - we don't use the config - # variable because supybot's test framework sets the value after the - # plugin has been loaded + # Set a different port and address from the default one to make + # testing while a supybot-github instance is running possible - we + # don't use the config variable because supybot's test framework sets + # the value after the plugin has been loaded conf.supybot.plugins.get("Github").get('port').setValue(self.port) + conf.supybot.plugins.get("Github").get('address').setValue(self.address) PluginTestCase.setUp(self) -- cgit v1.2.3