Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
wiperf / usr / local / lib / python3.7 / dist-packages / tests / test_InfluxDBClient.py
Size: Mime:
import unittest

from influxdb_client import InfluxDBClient


class InfluxDBClientTest(unittest.TestCase):

    def test_TrailingSlashInUrl(self):
        client = InfluxDBClient(url="http://localhost:9999", token="my-token", org="my-org")
        self.assertEqual('http://localhost:9999', client.api_client.configuration.host)

        client = InfluxDBClient(url="http://localhost:9999/", token="my-token", org="my-org")
        self.assertEqual('http://localhost:9999', client.api_client.configuration.host)