Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0ee7c38

Browse files
committed
FakeSession [fake_session]
1 parent 0dd5142 commit 0ee7c38

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test_services.py

+7
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)