Skip to content

Commit ce13ba2

Browse files
committed
black formatter error
1 parent b391f0a commit ce13ba2

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

src/PowerPlatform/Dataverse/data/_odata.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1918,9 +1918,7 @@ def _create_table(
19181918
)
19191919

19201920
attributes: List[Dict[str, Any]] = []
1921-
attributes.append(
1922-
self._attribute_payload(primary_attr_schema, "string", is_primary_name=True, complex=True)
1923-
)
1921+
attributes.append(self._attribute_payload(primary_attr_schema, "string", is_primary_name=True, complex=True))
19241922
for col_name, dtype in schema.items():
19251923
payload = self._attribute_payload(col_name, dtype, complex=True)
19261924
if not payload:

tests/unit/data/test_odata_internal.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1517,7 +1517,7 @@ def test_int_dtype(self):
15171517
"""'int' produces IntegerAttributeMetadata."""
15181518
result = self.od._attribute_payload("new_Count", "int")
15191519
self.assertEqual(result["@odata.type"], "Microsoft.Dynamics.CRM.IntegerAttributeMetadata")
1520-
1520+
15211521
def test_complex_int_dtype(self):
15221522
"""'int' produces ComplexIntegerAttributeMetadata."""
15231523
result = self.od._attribute_payload("new_Count", "int", complex=True)
@@ -1568,7 +1568,6 @@ def test_complex_datetime_dtype(self):
15681568
result = self.od._attribute_payload("new_CreatedDate", "datetime", complex=True)
15691569
self.assertEqual(result["@odata.type"], "Microsoft.Dynamics.CRM.ComplexDateTimeAttributeMetadata")
15701570

1571-
15721571
def test_date_dtype_alias(self):
15731572
"""'date' is an alias for 'datetime'."""
15741573
result = self.od._attribute_payload("new_BirthDate", "date")
@@ -1578,7 +1577,7 @@ def test_bool_dtype(self):
15781577
"""'bool' produces BooleanAttributeMetadata."""
15791578
result = self.od._attribute_payload("new_IsActive", "bool")
15801579
self.assertEqual(result["@odata.type"], "Microsoft.Dynamics.CRM.BooleanAttributeMetadata")
1581-
1580+
15821581
def test_complex_bool_dtype(self):
15831582
"""'bool' produces ComplexBooleanAttributeMetadata."""
15841583
result = self.od._attribute_payload("new_IsActive", "bool", complex=True)
@@ -1634,7 +1633,7 @@ def test_string_type_max_length(self):
16341633
self.assertEqual(result["@odata.type"], "Microsoft.Dynamics.CRM.StringAttributeMetadata")
16351634
self.assertEqual(result["MaxLength"], 200)
16361635
self.assertEqual(result["FormatName"], {"Value": "Text"})
1637-
1636+
16381637
def test_complex_string_type_max_length(self):
16391638
"""'string' produces ComplexStringAttributeMetadata with MaxLength 200."""
16401639
result = self.od._attribute_payload("new_Title", "string", complex=True)

0 commit comments

Comments
 (0)