Skip to content

Commit 1584f0b

Browse files
committed
style: make black happy
1 parent 7be9c3c commit 1584f0b

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

caso/tests/test_messenger.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,13 @@ def test_filter_records_handles_energy(self, energy_record):
9090
assert len(result) == 1
9191
assert isinstance(result[0], caso.record.EnergyRecord)
9292

93-
def test_filter_records_returns_empty_when_no_match(
94-
self, cloud_record, ip_record
95-
):
93+
def test_filter_records_returns_empty_when_no_match(self, cloud_record, ip_record):
9694
"""Test that empty list is returned when no records match filter."""
9795
records = [cloud_record, ip_record]
9896
result = caso.messenger._filter_records(records, ["storage", "energy"])
9997
assert result == []
10098

101-
def test_filter_records_ignores_invalid_types(
102-
self, cloud_record, ip_record
103-
):
99+
def test_filter_records_ignores_invalid_types(self, cloud_record, ip_record):
104100
"""Test that invalid record types are ignored in the filter."""
105101
records = [cloud_record, ip_record]
106102
result = caso.messenger._filter_records(records, ["invalid_type"])
@@ -112,9 +108,7 @@ def test_filter_records_mixed_valid_invalid_types(
112108
):
113109
"""Test filtering with mix of valid and invalid types."""
114110
records = [cloud_record, ip_record, storage_record]
115-
result = caso.messenger._filter_records(
116-
records, ["cloud", "invalid_type"]
117-
)
111+
result = caso.messenger._filter_records(records, ["cloud", "invalid_type"])
118112
assert len(result) == 1
119113
assert isinstance(result[0], caso.record.CloudRecord)
120114

0 commit comments

Comments
 (0)