Skip to content

Commit 85b4dcf

Browse files
committed
ruff 🐶
1 parent c6f7564 commit 85b4dcf

File tree

2 files changed

+808
-566
lines changed

2 files changed

+808
-566
lines changed

tests/test_dao.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def test_datatype_accepts_enum_for_manifest_valid(self):
8888

8989
def test_invalid_datatype_fails(self):
9090
tmetadata = TableMetadata()
91-
with self.assertRaises(ValueError) as ctx:
91+
with self.assertRaises(ValueError):
9292
tmetadata.add_column_data_type("col", "invalid type")
9393

9494
def test_table_description_metadata_for_legacy_manifest_is_valid(self):
@@ -259,7 +259,7 @@ def test_out_old_to_new_has_headers_columns(self):
259259
self.assertEqual(manifest["has_header"], False)
260260

261261
def test_out_pkey_and_no_columns_incompatible(self):
262-
with self.assertRaises(UserException) as e:
262+
with self.assertRaises(UserException):
263263
TableDefinition("testDef", "somepath", primary_key=["foo"])
264264

265265
def test_out_legacy_to_new_compatible(self):
@@ -307,7 +307,7 @@ def test_table_manifest_minimal(self):
307307

308308
def test_table_manifest_missing_key(self):
309309
with self.assertRaises(UserException) as e:
310-
table_def = TableDefinition(
310+
TableDefinition(
311311
"testDef", "somepath", is_sliced=False, primary_key=["foo", "bar"]
312312
)
313313

@@ -605,9 +605,7 @@ def test_unsupported_legacy_queue_properties_log(self):
605605
log.output[0],
606606
)
607607

608-
def test_unsupported_legacy_queue_properties_excluded(self):
609608
td = TableDefinition("testDef", "somepath", write_always=True, stage="out")
610-
manifest = td.get_manifest_dictionary(legacy_queue=True)
611609
self.assertTrue("write_always" not in manifest)
612610

613611
manifest = td.get_manifest_dictionary(legacy_queue=False)

0 commit comments

Comments
 (0)