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

Public Member Functions

def test_parse_uri
 
def test_both_raises
 

Detailed Description

Definition at line 74 of file test_connection.py.

Member Function Documentation

def tests.test_connection.TestURI.test_both_raises (   self)

Definition at line 93 of file test_connection.py.

References omnisci.connection.connect().

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

+ Here is the call graph for this function:

def tests.test_connection.TestURI.test_parse_uri (   self)

Definition at line 75 of file test_connection.py.

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

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

+ Here is the call graph for this function:


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