GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(bigquery): fix repr of model reference (#66) · okothchristopher/python-bigquery@26c6204

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • google/cloud/bigquery
    • model.py
  • tests/unit/model
    • test_model.py
    • test_model_reference.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎google/cloud/bigquery/model.py‎

Copy file name to clipboardExpand all lines: google/cloud/bigquery/model.py
+1-1Lines 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
)
Collapse file

‎tests/unit/model/test_model.py‎

Copy file name to clipboardExpand all lines: tests/unit/model/test_model.py
+1-1Lines 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
)
Collapse file

‎tests/unit/model/test_model_reference.py‎

Copy file name to clipboardExpand all lines: tests/unit/model/test_model_reference.py
+1-1Lines 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 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.