File tree Expand file tree Collapse file tree 3 files changed +27
-6
lines changed Expand file tree Collapse file tree 3 files changed +27
-6
lines changed Original file line number Diff line number Diff line change
1
+ # pizzapi Contributors
2
+
3
+ ## Maintainers
4
+
5
+ ### [ Grant Gordon] ( https://github.com/gamagori )
6
+ ###### Current Maintainer
7
+
8
+ ## Contributors
9
+
10
+ ### [ Arie van Luttikhuizen] ( https://github.com/aluttik )
11
+ ###### Original Author
Original file line number Diff line number Diff line change @@ -112,11 +112,13 @@ def pay_with(self, card=False):
112
112
self .data ['Payments' ] = [
113
113
{
114
114
'Type' : 'CreditCard' ,
115
- 'Expiration' : self . credit_card .expiration ,
115
+ 'Expiration' : card .expiration ,
116
116
'Amount' : self .data ['Amounts' ].get ('Customer' , 0 ),
117
- 'CardType' : self . credit_card .card_type ,
118
- 'Number' : int (self . credit_card .number ),
119
- 'SecurityCode' : int (self . credit_card .cvv ),
120
- 'PostalCode' : int (self . credit_card .zip )
117
+ 'CardType' : card .card_type ,
118
+ 'Number' : int (card .number ),
119
+ 'SecurityCode' : int (card .cvv ),
120
+ 'PostalCode' : int (card .zip )
121
121
}
122
122
]
123
+
124
+ return response
Original file line number Diff line number Diff line change @@ -129,8 +129,16 @@ def run(self):
129
129
# your project is installed. For an analysis of "install_requires" vs pip's
130
130
# requirements files see:
131
131
# https://packaging.python.org/en/latest/requirements.html
132
- install_requires = ['requests' , 'xmltodict' ],
132
+ install_requires = [
133
+ 'pyhamcrest' ,
134
+ 'requests' ,
135
+ 'xmltodict' ,
136
+ ],
133
137
include_package_data = True ,
138
+ tests_require = [
139
+ 'mock' ,
140
+ 'pytest' ,
141
+ ],
134
142
135
143
# setup.py publish support.
136
144
cmdclass = {
You can’t perform that action at this time.
0 commit comments