Skip to content

Commit 7f01cd5

Browse files
committed
add tests
1 parent 7cd9dbb commit 7f01cd5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_kkiapay.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,22 @@
77
def setup_module(module):
88
""" setup any state specific to the execution of the given module."""
99

10+
1011
def teardown_module(module):
1112
""" teardown any state that was previously setup with a setup_module
1213
method.
1314
"""
1415

1516
class TestKkiapay(object):
1617

18+
def test_urls(self):
19+
live = Kkiapay('public_key', 'private_key', 'secret')
20+
sandbox = Kkiapay('public_key', 'private_key', 'secret', sandbox=True)
21+
22+
assert live.url == Kkiapay.BASE_URL
23+
assert sandbox.url == Kkiapay.SANDBOX_URL
24+
25+
1726
def test_answer(self, requests_mock):
1827
pass
1928
# requests_mock.get("http://123-fake-api.com", text="Hello!")

0 commit comments

Comments
 (0)