Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:50:48

0001 import unittest
0002 import sys
0003 import datetime
0004 import pprint
0005 import subprocess
0006 import os
0007 
0008 import CondCore.Utilities.CondDBFW.querying as querying
0009 import CondCore.Utilities.CondDBFW.data_sources as data_sources
0010 import CondCore.Utilities.CondDBFW.data_formats as data_formats
0011 import CondCore.Utilities.CondDBFW.shell as shell
0012 import CondCore.Utilities.CondDBFW.models as models
0013 
0014 prod_connection_string = "frontier://FrontierProd/CMS_CONDITIONS"
0015 secrets_source = None
0016 
0017 class shell_tests(unittest.TestCase):
0018 
0019     def setUp(self):
0020         self.connection = querying.connect(prod_connection_string, secrets=secrets_source)
0021 
0022     def test_init_shell(self):
0023         connection = shell.connect(prod_connection_string, secrets=secrets_source)
0024         self.assertTrue(connection != None)
0025 
0026     def tearDown(self):
0027         self.connection.tear_down()