Skip to content

Commit

Permalink
update submit query to use user_client instead of admin_client
Browse files Browse the repository at this point in the history
  • Loading branch information
BrendanSchell committed Sep 27, 2024
1 parent 53bb398 commit fbf9162
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/syft/src/syft/util/test_helpers/apis/submit_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ def submit_query(
name=func_name,
input_policy=sy.MixedInputPolicy(
endpoint=sy.Constant(
val=context.admin_client.api.services.bigquery.test_query
val=context.user_client.api.services.bigquery.test_query
),
query=sy.Constant(val=query),
client=context.admin_client,
client=context.user_client,
),
worker_pool_name=context.settings["user_code_worker"],
)
Expand Down
4 changes: 2 additions & 2 deletions packages/syft/src/syft/util/test_helpers/email_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ def relogin(self) -> None:

@client.setter
def client(self, client):
client = client.login(email=self.email, password=self.latest_password)
self._client_cache = client
this_client = client.login(email=self.email, password=self.latest_password)
self._client_cache = this_client

def to_dict(self) -> dict:
output = {}
Expand Down

0 comments on commit fbf9162

Please sign in to comment.