1-
2-
31from .context import kkiapay
42from kkiapay import Kkiapay
53import requests_mock , requests
64
5+
76def setup_module (module ):
87 """ setup any state specific to the execution of the given module."""
98
@@ -13,26 +12,14 @@ def teardown_module(module):
1312 method.
1413 """
1514
16- class TestKkiapay (object ):
1715
16+ class TestKkiapay (object ):
1817 def test_urls (self ):
19- live = Kkiapay (' public_key' , ' private_key' , ' secret' )
20- sandbox = Kkiapay (' public_key' , ' private_key' , ' secret' , sandbox = True )
18+ live = Kkiapay (" public_key" , " private_key" , " secret" )
19+ sandbox = Kkiapay (" public_key" , " private_key" , " secret" , sandbox = True )
2120
2221 assert live .url == Kkiapay .BASE_URL
2322 assert sandbox .url == Kkiapay .SANDBOX_URL
2423
25-
26- def test_answer (self , requests_mock ):
24+ def test_requests (self , requests_mock ):
2725 pass
28- # requests_mock.get("http://123-fake-api.com", text="Hello!")
29- # requests_mock.get("http://123-fake-api.com", text="Hello!")
30- # response = requests.get("http://123-fake-api.com")
31-
32- # assert response.text == "Hello!"
33-
34-
35-
36- # k = Kkiapay('a1fc2c00410911e991519dc1901933da', 'pk_a1fc5310410911e991519dc1901933da', 'sk_a1fc5311410911e991519dc1901933da')
37-
38- # r = k.verify_transaction('qM0enu1Czb')
0 commit comments