Skip to content

Commit 15b9bf7

Browse files
committed
FakeSession [fake_session]
1 parent 9fe9a3d commit 15b9bf7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test_services.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ def list(self):
1818
return list(self._batches)
1919

2020

21+
class FakeSession:
22+
committed = False
23+
24+
def commit(self):
25+
self.committed = True
26+
27+
2128
def test_returns_allocation():
2229
line = model.OrderLine("o1", "COMPLICATED-LAMP", 10)
2330
batch = model.Batch("b1", "COMPLICATED-LAMP", 100, eta=None)

0 commit comments

Comments
 (0)