Skip to content

Commit 1b27dfb

Browse files
committed
FakeSession [fake_session]
1 parent 0ebe35a commit 1b27dfb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test_services.py

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

2121

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

0 commit comments

Comments
 (0)