Skip to content

Commit

Permalink
more stable test_interactive_new
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Short committed Mar 26, 2019
1 parent 6b0bbf3 commit 6d72e62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion redash/cli/data_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def new(name=None, type=None, options=None, organization='default'):

options_obj = {}

for k, prop in schema['properties'].iteritems():
for k, prop in sorted(schema['properties'].iteritems()):
required = k in schema.get('required', [])
default_value = "<<DEFAULT_VALUE>>"
if required:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_interactive_new(self):
result = runner.invoke(
manager,
['ds', 'new'],
input="test\n%s\n\n\n\n\nexample.com\n\n\n\ntestdb\n" % (pg_i,))
input="test\n%s\ntestdb\n" % (pg_i,))
self.assertFalse(result.exception)
self.assertEqual(result.exit_code, 0)
self.assertEqual(DataSource.query.count(), 1)
Expand Down

0 comments on commit 6d72e62

Please sign in to comment.