MCPcopy Create free account
hub / github.com/dbcli/mssql-cli / clean_up_test_db

Function clean_up_test_db

tests/mssqltestutils.py:167–175  ·  view source on GitHub ↗
(test_db_name)

Source from the content-addressed store, hash-verified

165 return (state_desc, error_desc)
166
167def clean_up_test_db(test_db_name):
168 client = create_mssql_cli_client()
169 query = u"DROP DATABASE {0};".format(test_db_name)
170 success = True
171 for _, _, _, _, is_error in client.execute_query(query):
172 if is_error is True:
173 success = False
174 shutdown(client)
175 return success
176
177def get_file_contents(file_path):
178 """ Get expected result from file. """

Callers 3

client_with_dbMethod · 0.90
test_multiple_mergeMethod · 0.90
test_dbMethod · 0.90

Calls 4

create_mssql_cli_clientFunction · 0.85
shutdownFunction · 0.85
formatMethod · 0.45
execute_queryMethod · 0.45

Tested by

no test coverage detected