Skip to content
Open
8 changes: 8 additions & 0 deletions tests/payouts/payouts_get_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import unittest
import json
import sys
from paypalpayoutssdk.payouts import PayoutsGetRequest
from tests.test_harness import TestHarness
from tests.payouts.payouts_post_test import createPayouts
Expand All @@ -8,6 +9,13 @@ class PayoutsGetTest(TestHarness):

def testPayoutsGetTest(self):
response = getPayouts(self.client)

sys.stdout.write('PayoutsPostTest')
sys.stdout.write(response.status_code)
sys.stdout.write(response.result)
sys.stdout.write(response.result.links)
sys.stdout.flush()

self.assertEqual(200, response.status_code)
self.assertIsNotNone(response.result)

Expand Down
8 changes: 8 additions & 0 deletions tests/payouts/payouts_item_cancel_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import unittest
import json
import time
import sys
from paypalpayoutssdk.payouts import PayoutsItemCancelRequest
from tests.test_harness import TestHarness
from tests.payouts.payouts_item_get_test import getPayoutItem
Expand All @@ -13,6 +14,13 @@ def testPayoutsItemCancelTest(self):

request = PayoutsItemCancelRequest(response.result.payout_item_id)
response = self.client.execute(request)

sys.stdout.write('PayoutsPostTest')
sys.stdout.write(response.status_code)
sys.stdout.write(response.result)
sys.stdout.write(response.result.links)
sys.stdout.flush()

self.assertEqual(200, response.status_code)
self.assertIsNotNone(response.result)

Expand Down
7 changes: 7 additions & 0 deletions tests/payouts/payouts_item_get_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import unittest
import json
import sys
from paypalpayoutssdk.payouts import PayoutsItemGetRequest
from tests.test_harness import TestHarness
from tests.payouts.payouts_get_test import getPayouts
Expand All @@ -9,6 +10,12 @@ class PayoutsItemGetTest(TestHarness):
def testPayoutsItemGetTest(self):
response = getPayoutItem(self.client)

sys.stdout.write('PayoutsPostTest')
sys.stdout.write(response.status_code)
sys.stdout.write(response.result)
sys.stdout.write(response.result.links)
sys.stdout.flush()

self.assertEqual(200, response.status_code)
self.assertIsNotNone(response.result)

Expand Down
8 changes: 7 additions & 1 deletion tests/payouts/payouts_post_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@
import json
import string
import random
import sys
from paypalpayoutssdk.payouts import PayoutsPostRequest
from tests import TestHarness

class PayoutsPostTest(TestHarness):

def testCreatePayouts(self):
response = createPayouts(self.client)

sys.stdout.write('PayoutsPostTest')
sys.stdout.write(response.status_code)
sys.stdout.write(response.result)
sys.stdout.write(response.result.links)
sys.stdout.flush()

self.assertEqual(201, response.status_code)
self.assertIsNotNone(response.result)

Expand Down