From e720198633a772fc37a40624f9a4c81a4fd546c0 Mon Sep 17 00:00:00 2001 From: Arjan Zijderveld Date: Wed, 28 Oct 2020 12:20:22 +0100 Subject: [PATCH] Add possibility to set alternative Substrate RPC URLs for testing --- test/settings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/settings.py b/test/settings.py index 056c60c..819dd24 100644 --- a/test/settings.py +++ b/test/settings.py @@ -13,8 +13,9 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +from os import environ -KUSAMA_NODE_URL = 'wss://kusama-rpc.polkadot.io/' -POLKADOT_NODE_URL = 'wss://rpc.polkadot.io/' +KUSAMA_NODE_URL = environ.get('SUBSTRATE_NODE_URL_KUSAMA') or 'wss://kusama-rpc.polkadot.io/' +POLKADOT_NODE_URL = environ.get('SUBSTRATE_NODE_URL_POLKADOT') or 'wss://rpc.polkadot.io/'