Skip to content

Commit 4230a9d

Browse files
authored
fix linting in test_dataset.py
1 parent adffcf5 commit 4230a9d

File tree

1 file changed

+35
-30
lines changed

1 file changed

+35
-30
lines changed

tests/unit/test_dataset.py

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,62 +1769,67 @@ def test__hash__with_minimal_inputs(self):
17691769
assert hash(cond1) is not None
17701770

17711771
def test_access_entry_view_equality(self):
1772-
17731772
from google.cloud import bigquery
17741773

17751774
entry1 = bigquery.dataset.AccessEntry(
17761775
entity_type="view",
17771776
entity_id={
1778-
"projectId":"my_project",
1779-
"datasetId":"my_dataset",
1780-
"tableId":"my_table",
1777+
"projectId": "my_project",
1778+
"datasetId": "my_dataset",
1779+
"tableId": "my_table",
17811780
},
17821781
)
1783-
entry2 = bigquery.dataset.AccessEntry.from_api_repr({
1784-
"view":{
1785-
"projectId":"my_project",
1786-
"datasetId":"my_dataset",
1787-
"tableId":"my_table",
1782+
entry2 = bigquery.dataset.AccessEntry.from_api_repr(
1783+
{
1784+
"view": {
1785+
"projectId": "my_project",
1786+
"datasetId": "my_dataset",
1787+
"tableId": "my_table",
1788+
}
17881789
}
1789-
})
1790+
)
17901791

17911792
entry3 = bigquery.dataset.AccessEntry(
17921793
entity_type="routine",
17931794
entity_id={
1794-
"projectId":"my_project",
1795-
"datasetId":"my_dataset",
1796-
"routineId":"my_routine",
1795+
"projectId": "my_project",
1796+
"datasetId": "my_dataset",
1797+
"routineId": "my_routine",
17971798
},
17981799
)
17991800

1800-
entry4 = bigquery.dataset.AccessEntry.from_api_repr({
1801-
"routine":{
1802-
"projectId":"my_project",
1803-
"datasetId":"my_dataset",
1804-
"routineId":"my_routine",
1801+
entry4 = bigquery.dataset.AccessEntry.from_api_repr(
1802+
{
1803+
"routine": {
1804+
"projectId": "my_project",
1805+
"datasetId": "my_dataset",
1806+
"routineId": "my_routine",
1807+
}
18051808
}
1806-
})
1809+
)
18071810

18081811
entry5 = bigquery.dataset.AccessEntry(
18091812
entity_type="dataset",
18101813
entity_id={
18111814
"dataset": {
1812-
"projectId":"my_project",
1813-
"datasetId":"my_dataset",
1815+
"projectId": "my_project",
1816+
"datasetId": "my_dataset",
18141817
},
1815-
"target_types":"VIEWS",
1818+
"target_types": "VIEWS",
18161819
},
18171820
)
18181821

1819-
entry6 = bigquery.dataset.AccessEntry.from_api_repr({
1820-
"dataset":{
1821-
"dataset":{
1822-
"projectId":"my_project",
1823-
"datasetId":"my_dataset",
1824-
},
1825-
"target_types":"VIEWS",
1822+
entry6 = bigquery.dataset.AccessEntry.from_api_repr(
1823+
{
1824+
"dataset": {
1825+
"dataset": {
1826+
"projectId": "my_project",
1827+
"datasetId": "my_dataset",
1828+
},
1829+
"target_types": "VIEWS",
1830+
}
18261831
}
1827-
})
1832+
)
18281833

18291834
assert entry1 == entry2
18301835
assert entry3 == entry4

0 commit comments

Comments
 (0)