File tree Expand file tree Collapse file tree 9 files changed +18
-10
lines changed Expand file tree Collapse file tree 9 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 3838 pip install coverage
3939 # Run the tests. I'm using unittest and coverage and the file is in the tests directory.
4040 - name : Run tests
41- run : coverage run -m unittest thepeer/tests/thepeer_test.py
41+ run : coverage run -m unittest
Original file line number Diff line number Diff line change @@ -129,5 +129,8 @@ dmypy.json
129129.pyre /
130130
131131* .sh
132+ ! run_tests.sh
132133notes.md
133134guide.md
135+ .DS_Store
136+ junk *
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ pip install pythepeer
1717Instantiate ``` Thepeer ``` class like so:
1818``` python
1919import thepeer
20- from thepeer.main import Thepeer
20+ from thepeer import Thepeer
2121
2222# create an instance of ThepeerInit class
2323
Original file line number Diff line number Diff line change 1+ python -m unittest discover -s ' ./tests' -p ' test_*.py'
Original file line number Diff line number Diff line change 1212
1313setup (
1414 name = "pythepeer" ,
15- version = "0.0.3 " ,
15+ version = "0.0.4 " ,
1616 description = "official python sdk for interacting with thepeer payment processing \
1717 infrastructure" ,
1818 author = "Osagie Iyayi" ,
File renamed without changes.
Original file line number Diff line number Diff line change 11import unittest
2- from thepeer import main # type: ignore
2+ from thepeer import Thepeer # type: ignore
33
4- thepeer_test_suites = main . Thepeer ("pssk_test_vwww1yvvpymamtut26x5tvpx1znrcmeis2k0kvcmwzjax" )
4+ thepeer_test_suites = Thepeer ("pssk_test_vwww1yvvpymamtut26x5tvpx1znrcmeis2k0kvcmwzjax" )
55
66
77class ThePeerInitMethods (unittest .TestCase ):
Original file line number Diff line number Diff line change 1+ from .main import Thepeer
2+ from .utils import exceptions
3+
4+ __all__ = (
5+ "Thepeer" ,
6+ "exceptions"
7+ )
Original file line number Diff line number Diff line change 44import os
55import sys
66
7- sys .path .append (os .path .dirname (os .path .abspath (__file__ )))
8-
9-
107import httpx # noqa: E402
11- from utils .constants import BASE_URL # noqa: E402
12- from utils .exceptions .handleErrors import SwitchErrorStates # noqa: E402
8+ from . utils .constants import BASE_URL # noqa: E402
9+ from . utils .exceptions .handleErrors import SwitchErrorStates # noqa: E402
1310
1411
1512class Thepeer :
You can’t perform that action at this time.
0 commit comments