@@ -48,39 +48,39 @@ def setUp(self):
4848 )
4949
5050
51- def test_stripe_single_charge (self ):
52- token = stripe .Token .create (
53- card = {
54- "number" : "4242424242424242" ,
55- "exp_month" : 4 ,
56- "exp_year" : 2028 ,
57- "cvc" : "314" ,
58- },
59- )
60- customer = stripe .Customer .create (
61- email = 'employer1@testdoma.in' ,
62- )
63- data = {
64- 'token' : token .id ,
65- 'amount' : 1 ,
66- }
67- url = reverse_lazy ('api:create-payment-intent' )
68- self .client .force_login (self .test_user_employer )
69- response = self .client .post (url , data = data , content_type = "application/json" )
70- self .assertEqual (response .status_code , 200 , response .content .decode ())
71- response_json = response .json ()
51+ # def test_stripe_single_charge(self):
52+ # token = stripe.Token.create(
53+ # card={
54+ # "number": "4242424242424242",
55+ # "exp_month": 4,
56+ # "exp_year": 2028,
57+ # "cvc": "314",
58+ # },
59+ # )
60+ # customer = stripe.Customer.create(
61+ # email='employer1@testdoma.in',
62+ # )
63+ # data= {
64+ # 'token': token.id,
65+ # 'amount': 1,
66+ # }
67+ # url = reverse_lazy('api:create-payment-intent')
68+ # self.client.force_login(self.test_user_employer)
69+ # response = self.client.post(url, data=data, content_type="application/json")
70+ # self.assertEqual(response.status_code, 200, response.content.decode())
71+ # response_json = response.json()
7272
73- def test_customer_stripe_id (self ):
74- self .customer = stripe .Customer .create (
75- email = "employer1@testdoma.in" ,
76- description = "customer for test" ,
77- )
78- self .assertIsNotNone (self .customer .id )
73+ # def test_customer_stripe_id(self):
74+ # self.customer = stripe.Customer.create(
75+ # email="employer1@testdoma.in",
76+ # description="customer for test",
77+ # )
78+ # self.assertIsNotNone(self.customer.id)
7979
80- def test_creating_a_new_customer (self ):
81- customer = stripe .Customer .create (
82- email = "employer1@testdoma.in" ,
83- description = "customer for test" ,
84- )
80+ # def test_creating_a_new_customer(self):
81+ # customer = stripe.Customer.create(
82+ # email="employer1@testdoma.in",
83+ # description="customer for test",
84+ # )
8585
8686
0 commit comments