OmniSciDB  cde582ebc3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
tests.test_connection.TestURI Class Reference

Public Member Functions

def test_parse_uri
 
def test_both_raises
 

Detailed Description

Definition at line 75 of file test_connection.py.

Member Function Documentation

def tests.test_connection.TestURI.test_both_raises (   self)

Definition at line 94 of file test_connection.py.

References heavydb.connection.connect().

94 
95  def test_both_raises(self):
96  uri = (
97  'heavydb://admin:HyperInteractive@{0}:6274/heavyai?'
98  'protocol=binary'.format(heavydb_host)
99  )
100  with pytest.raises(TypeError):
101  connect(uri=uri, user='my user')
102 

+ Here is the call graph for this function:

def tests.test_connection.TestURI.test_parse_uri (   self)

Definition at line 76 of file test_connection.py.

References heavydb.connection._parse_uri(), and heavydb.connection.ConnectionInfo.

76 
77  def test_parse_uri(self):
78  uri = (
79  'heavydb://admin:HyperInteractive@{0}:6274/heavyai?'
80  'protocol=binary'.format(heavydb_host)
81  )
82  result = _parse_uri(uri)
83  expected = ConnectionInfo(
84  "admin",
85  "HyperInteractive",
86  heavydb_host,
87  6274,
88  "heavyai",
89  "binary",
90  None,
91  None,
92  )
93  assert result == expected

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: