Skip to content

Commit 26c6204

Browse files
fix(bigquery): fix repr of model reference (#66)
1 parent 2abdef8 commit 26c6204

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

google/cloud/bigquery/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,6 @@ def __hash__(self):
430430
return hash(self._key())
431431

432432
def __repr__(self):
433-
return "ModelReference(project='{}', dataset_id='{}', project_id='{}')".format(
433+
return "ModelReference(project_id='{}', dataset_id='{}', model_id='{}')".format(
434434
self.project, self.dataset_id, self.model_id
435435
)

tests/unit/model/test_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,5 +316,5 @@ def test_repr(target_class):
316316
got = repr(model)
317317
assert got == (
318318
"Model(reference=ModelReference("
319-
"project='my-proj', dataset_id='my_dset', project_id='my_model'))"
319+
"project_id='my-proj', dataset_id='my_dset', model_id='my_model'))"
320320
)

tests/unit/model/test_model_reference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,5 @@ def test_repr(target_class):
136136
got = repr(model)
137137
assert (
138138
got
139-
== "ModelReference(project='my-proj', dataset_id='my_dset', project_id='my_model')"
139+
== "ModelReference(project_id='my-proj', dataset_id='my_dset', model_id='my_model')"
140140
)

0 commit comments

Comments
 (0)