CMS 3D CMS Logo

shell_tests.py
Go to the documentation of this file.
1 import unittest
2 import sys
3 import datetime
4 import pprint
5 import subprocess
6 import os
7 
8 import CondCore.Utilities.CondDBFW.querying as querying
9 import CondCore.Utilities.CondDBFW.data_sources as data_sources
10 import CondCore.Utilities.CondDBFW.data_formats as data_formats
11 import CondCore.Utilities.CondDBFW.shell as shell
12 import CondCore.Utilities.CondDBFW.models as models
13 
14 prod_connection_string = "frontier://FrontierProd/CMS_CONDITIONS"
15 secrets_source = None
16 
17 class shell_tests(unittest.TestCase):
18 
19  def setUp(self):
20  self.connection = querying.connect(prod_connection_string, secrets=secrets_source)
21 
22  def test_init_shell(self):
23  connection = shell.connect(prod_connection_string, secrets=secrets_source)
24  self.assertTrue(connection != None)
25 
26  def tearDown(self):
27  self.connection.tear_down()
def connect(connection_data, mode="r", map_blobs=False, secrets=None, pooling=True)
Definition: querying.py:453
def connect(connection_data=None, mode="r", map_blobs=False, secrets=None, pooling=True)
Definition: shell.py:13