-
Notifications
You must be signed in to change notification settings - Fork 193
Add special commands and tests #155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
tests/test_special.py
Outdated
try: | ||
# create the database objects to test upon | ||
client = create_mssql_cli_client() | ||
list(client.execute_single_batch_query('CREATE DATABASE testdb1;')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
testdb1 [](start = 68, length = 7)
can this by dynamic, eg. mssql-cli-test-xxxx-xxxxx
This way, concurrently running tests can't step on each other. #Resolved
tests/test_special.py
Outdated
@@ -0,0 +1,86 @@ | |||
import unittest | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please run these test on supported server version to make sure the queries work: 2005, 2008, 2012, 2016, 2017, and Azure SQLDB, Azure SQL DW #Resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested (tested on 2005 manually, tests were timing out due to the issue we saw offline)
In reply to: 165537064 [](ancestors = 165537064)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just two high level comments:
- Lets test against all server versions
- Make sure tests can run concurrently without conflicts
* Special commands create source files * Special commands add help special command * Add list databases command * Add list schemas special command * Add list tables * Add list views and list indexes * Add special command tests * Update tests to use dynamically generated resource names
* Special commands create source files * Special commands add help special command * Add list databases command * Add list schemas special command * Add list tables * Add list views and list indexes * Add special command tests * Update tests to use dynamically generated resource names
* Special commands create source files * Special commands add help special command * Add list databases command * Add list schemas special command * Add list tables * Add list views and list indexes * Add special command tests * Update tests to use dynamically generated resource names
Adds the first batch of special commands, and the corresponding tests.
Code coverage bumped from 63% to 64%
More special commands will be added in separate PR's.
This PR gives a foundation for implementing future special commands.