Browse Source

Fixes #991 - remove get_config_irc_channel

master
Adam Gibson 4 years ago
parent
commit
801dfa38f6
No known key found for this signature in database
GPG Key ID: 141001A1AF77F20B
  1. 9
      jmclient/jmclient/configure.py
  2. 15
      jmclient/test/test_configure.py

9
jmclient/jmclient/configure.py

@ -493,15 +493,6 @@ def _get_irc_mchannels_old():
configs.append(newconfig)
return configs
def get_config_irc_channel(channel_name):
channel = "#" + channel_name
if get_network() == 'testnet':
channel += '-test'
elif get_network() == 'signet':
channel += '-sig'
return channel
class JMPluginService(object):
""" Allows us to configure on-startup
any additional service (such as SNICKER).

15
jmclient/test/test_configure.py

@ -1,9 +1,8 @@
'''test configure module.'''
import pytest
from jmclient import load_test_config, jm_single, get_irc_mchannels
from jmclient.configure import (get_config_irc_channel,
get_blockchain_interface_instance)
from jmclient import load_test_config, jm_single
from jmclient.configure import get_blockchain_interface_instance
def test_attribute_dict():
@ -24,16 +23,6 @@ def test_load_config(tmpdir):
load_test_config()
def test_config_get_irc_channel():
load_test_config()
channel = "dummy"
assert get_config_irc_channel(channel) == "#dummy-test"
jm_single().config.set("BLOCKCHAIN", "network", "mainnet")
assert get_config_irc_channel(channel) == "#dummy"
get_irc_mchannels()
load_test_config()
def test_blockchain_sources():
load_test_config()
for src in ["electrum", "dummy"]:

Loading…
Cancel
Save