Skip to content

Commit

Permalink
Add possibility to set alternative Substrate RPC URLs for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjan Zijderveld committed Oct 28, 2020
1 parent e05a35f commit e720198
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/'


0 comments on commit e720198

Please sign in to comment.