Skip to content

Commit

Permalink
Merge pull request #87 from rserna2010/scenario-bug
Browse files Browse the repository at this point in the history
Fix uri on customer credit scenario
  • Loading branch information
remear committed Jan 27, 2014
2 parents 2f20758 + 00a31eb commit b3e04c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scenarios/customer_credit/executable.py
@@ -1,6 +1,6 @@
import balanced

balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA')
balanced.configure('ak-test-2KZfoLyijij3Y6OyhDAvFRF9tXzelBLpD')

customer = balanced.Customer.find('/v1/customers/CUyABeNYx8vHAaP4KRsd1j4/credits')
customer = balanced.Customer.find('/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo')
customer.credit(amount=100)
4 changes: 2 additions & 2 deletions scenarios/customer_credit/python.mako
Expand Up @@ -3,8 +3,8 @@ balanced.Customer.credit()
% else:
import balanced

balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA')
balanced.configure('ak-test-2KZfoLyijij3Y6OyhDAvFRF9tXzelBLpD')

customer = balanced.Customer.find('/v1/customers/CUyABeNYx8vHAaP4KRsd1j4/credits')
customer = balanced.Customer.find('/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo')
customer.credit(amount=100)
% endif
2 changes: 1 addition & 1 deletion scenarios/customer_credit/request.mako
@@ -1,5 +1,5 @@
<%namespace file='/_main.mako' name='main'/>
<% main.python_boilerplate() %>

customer = balanced.Customer.find('${request['uri']}')
customer = balanced.Customer.find('${request['customer_uri']}')
customer.credit(amount=${request['payload']['amount']})

0 comments on commit b3e04c4

Please sign in to comment.