Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
using the backend get_user method, so mysql users are created correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
vegitron committed Aug 29, 2016
1 parent 514a6b1 commit 877facf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sqlshare_rest/test/dao/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ def test_no_share_to_owner(self):
self.remove_users.append(shared_to1)
self.remove_users.append(shared_to2)

u1 = User.objects.create(username=shared_to1, db_username=shared_to1, db_password="", schema=shared_to1)
u2 = User.objects.create(username=shared_to2, db_username=shared_to2, db_password="", schema=shared_to2)
backend = get_backend()
u1 = backend.get_user(shared_to1)
u2 = backend.get_user(shared_to2)
Query.objects.all().delete()
model = create_dataset_from_query(username=owner, dataset_name="test4", sql="SELECT (3)")

Expand Down

0 comments on commit 877facf

Please sign in to comment.