Skip to content

Commit 2cd3161

Browse files
committed
Fix faux client for unit tests
Now that we use job_config for two use cases we need to cater for both
1 parent 17c3440 commit 2cd3161

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/fauxdbi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def __getattr__(self, name):
355355
class FauxClient:
356356
def __init__(self, project_id=None, default_query_job_config=None, *args, **kw):
357357
if project_id is None:
358-
if default_query_job_config is not None:
358+
if default_query_job_config is not None and default_query_job_config.default_dataset:
359359
project_id = default_query_job_config.default_dataset.project
360360
else:
361361
project_id = "authproj" # we would still have gotten it from auth.

0 commit comments

Comments
 (0)