diff options
author | kongr45gpen <electrovesta@gmail.com> | 2018-01-06 13:18:18 +0200 |
---|---|---|
committer | kongr45gpen <electrovesta@gmail.com> | 2018-01-06 13:19:18 +0200 |
commit | 4ac15ab8421c2c92322e715ffd1550203b212a21 (patch) | |
tree | 03fffd2c756411aaeaf188223ca4b946b71cd4d3 /test.py | |
parent | e04c3d95dd46a40af04e31a0020aec5f02043da3 (diff) | |
download | supybot_github-4ac15ab8421c2c92322e715ffd1550203b212a21.tar.gz supybot_github-4ac15ab8421c2c92322e715ffd1550203b212a21.tar.bz2 supybot_github-4ac15ab8421c2c92322e715ffd1550203b212a21.zip |
Add configuration value to specify the binding address of the HTTP server
Implements #24
Diffstat (limited to 'test.py')
-rw-r--r-- | test.py | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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) |