Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Update unitests for make_offer/bid
Browse files Browse the repository at this point in the history
  • Loading branch information
DavoudTaghawiNejad committed Jun 11, 2018
1 parent 6b87b64 commit eeab52b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion unittest/buy.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def one(self):
self.money = self['money']
self.price = random.uniform(0.0001, 1)
quantity = random.uniform(0, self.money / self.price)
self.offer = self.buy(('buy', self.id + 1),
self.offer = self.make_bid(('buy', self.id + 1),
'cookies', quantity, self.price)
assert self.not_reserved('money') == self.money - \
quantity * self.price
Expand Down
2 changes: 1 addition & 1 deletion unittest/sell.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def one(self):
self.cookies = self['cookies']
self.price = random.uniform(0.0001, 1)
quantity = random.uniform(0, self.cookies)
self.offer = self.sell(receiver=('sell', self.id + 1),
self.offer = self.make_offer(receiver=('sell', self.id + 1),
good='cookies', quantity=quantity, price=self.price)
assert self.not_reserved('cookies') == self.cookies - quantity

Expand Down

0 comments on commit eeab52b

Please sign in to comment.