Exemple #1
0
 def test_missing_rc_dir():
     try:
         rcfilePath = getTempPath('subdir', 'rcfile')
         mssqlcli = create_mssql_cli(mssqlclirc_file=rcfilePath)
         assert os.path.exists(rcfilePath)
     finally:
         mssqlcli.sqltoolsclient.shutdown()
Exemple #2
0
 def test_ensure_existing_dir(self):
     rcfilePath = getTempPath('subdir', 'rcfile')
     get_config(rcfilePath)
     # should just not raise
     ensure_dir_exists(rcfilePath)
     shutil.rmtree(getTempPath())