Skip to content

Commit

Permalink
Fixing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Sep 11, 2016
1 parent b8dd74f commit 63c2db8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion caravel/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1607,7 +1607,7 @@ def csv(self, client_id):
query = (
db.session.query(models.Query)
.filter_by(client_id=client_id)
.first()
.one()
)

if not self.database_access(query.database):
Expand Down
2 changes: 1 addition & 1 deletion tests/core_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def test_csv_endpoint(self):
FROM ab_user
WHERE first_name='admin'
"""
client_id = random.getrandbits(64)
client_id = "{}".format(random.getrandbits(64))[:10]
self.run_sql(sql, 'admin', client_id)

self.login('admin')
Expand Down

0 comments on commit 63c2db8

Please sign in to comment.