Skip to content
Permalink
Browse files
fix(bigquery): fix repr of model reference (#66)
  • Loading branch information
HemangChothani committed Mar 26, 2020
1 parent 2abdef8 commit 26c62046f4ec8880cf6561cc90a8b821dcc84ec5
Showing with 3 additions and 3 deletions.
  1. +1 −1 google/cloud/bigquery/model.py
  2. +1 −1 tests/unit/model/test_model.py
  3. +1 −1 tests/unit/model/test_model_reference.py
@@ -430,6 +430,6 @@ def __hash__(self):
return hash(self._key())

def __repr__(self):
return "ModelReference(project='{}', dataset_id='{}', project_id='{}')".format(
return "ModelReference(project_id='{}', dataset_id='{}', model_id='{}')".format(
self.project, self.dataset_id, self.model_id
)
@@ -316,5 +316,5 @@ def test_repr(target_class):
got = repr(model)
assert got == (
"Model(reference=ModelReference("
"project='my-proj', dataset_id='my_dset', project_id='my_model'))"
"project_id='my-proj', dataset_id='my_dset', model_id='my_model'))"
)
@@ -136,5 +136,5 @@ def test_repr(target_class):
got = repr(model)
assert (
got
== "ModelReference(project='my-proj', dataset_id='my_dset', project_id='my_model')"
== "ModelReference(project_id='my-proj', dataset_id='my_dset', model_id='my_model')"
)

0 comments on commit 26c6204

Please sign in to comment.