Skip to content

Commit 8a579ab

Browse files
committed
Fixed formatting
1 parent 40cfd59 commit 8a579ab

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/domain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class SymbologyServer:
1515
"""Domain layer for symbology server."""
16-
16+
1717
def __init__(self, storage: MappingStorage) -> None:
1818
self.storage = storage
1919

src/storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class MappingStorage:
1414
"""In-memory storage backend for symbology mappings."""
15-
15+
1616
def __init__(self) -> None:
1717
self._mappings: List[Mapping] = []
1818

tests/test_domain.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ def test_add_and_lookup_mapping():
2121
domain.add_mapping("AAPL", 1, date(2024, 1, 1))
2222
assert domain.get_identifier("AAPL", date(2024, 1, 2)) == 1
2323

24+
2425
def test_conflict_on_same_symbol():
2526
domain = SymbologyServer(MappingStorage())
2627
domain.add_mapping("AAPL", 1, date(2024, 1, 1))
2728
with pytest.raises(ConflictError):
2829
domain.add_mapping("AAPL", 2, date(2024, 1, 1))
2930

31+
3032
def test_termination_and_notfound():
3133
domain = SymbologyServer(MappingStorage())
3234
domain.add_mapping("AAPL", 1, date(2024, 1, 1))

0 commit comments

Comments
 (0)