Skip to content

Commit

Permalink
Making build.py argument handling robust.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMeemus committed Feb 23, 2018
1 parent 5950f60 commit 4eb4555
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,9 @@ def test():
actions = sys.argv[1:] or default_actions

for action in actions:
if action in targets:
targets[action]()
current_action = action.lower()
if current_action in targets:
targets[current_action]()
else:
print('{0} is not a supported action'.format(action[1]))
print('{0} is not a supported action'.format(current_action[1]))
print('Supported actions are {}'.format(list(targets.keys())))
2 changes: 1 addition & 1 deletion tests/mssqlutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def run_and_return_string_from_formatter(client, sql, join=False, expanded=False
"""

for rows, col, message, query, is_error in client.execute_single_statement(sql):
settings = OutputSettings(table_format='mssql', dcmlfmt='d', floatfmt='g',
settings = OutputSettings(table_format='psql', dcmlfmt='d', floatfmt='g',
expanded=expanded)
formatted = format_output(None, rows, col, message, settings)
if join:
Expand Down

0 comments on commit 4eb4555

Please sign in to comment.