Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0ee7c38

Browse files
committed
FakeSession [fake_session]
1 parent0dd5142 commit0ee7c38

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
@@ -18,6 +18,13 @@ def list(self):
1818
returnlist(self._batches)
1919

2020

21+
classFakeSession:
22+
committed=False
23+
24+
defcommit(self):
25+
self.committed=True
26+
27+
2128
deftest_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)

[8]ページ先頭

©2009-2025 Movatter.jp