Skip to content

Commit

Permalink
remove test case and update ver
Browse files Browse the repository at this point in the history
  • Loading branch information
thedtvn committed Aug 27, 2024
1 parent 5a4be99 commit 81d7895
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 167 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,6 @@ jobs:
sudo apt install libtesseract-dev
- name: Install package
run: pip install .
- name: Install Env
run: |
echo "MBBANK_USERNAME=${{ secrets.MBBANK_USERNAME }}" >> $GITHUB_ENV
echo "MBBANK_PASSWORD=${{ secrets.MBBANK_PASSWORD }}" >> $GITHUB_ENV
- name: Set Proxy
run: python tests/proxy.py >> $GITHUB_ENV
- name: Test package Asyncio
run: python tests/async_test.py
- name: Test package Sync
run: python tests/sync_test.py
- name: Build package
run: python ./setup.py sdist bdist_wheel
- name: Publish package
Expand Down
50 changes: 0 additions & 50 deletions .github/workflows/test.yml

This file was deleted.

2 changes: 1 addition & 1 deletion mbbank/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
from .wasm_helper import wasm_encrypt
from .capcha_ocr import CapchaProcessing, TesseractOCR

__version__ = '0.2.0'
__version__ = '0.2.1'
3 changes: 1 addition & 2 deletions tests/async_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@


async def main():
mb = MBBankAsync(username=os.getenv("MBBANK_USERNAME"), password=os.getenv("MBBANK_PASSWORD"),
proxy=os.getenv("http_proxy"))
mb = MBBankAsync(username=os.getenv("MBBANK_USERNAME"), password=os.getenv("MBBANK_PASSWORD"))
end_query_day = datetime.datetime.now()
start_query_day = end_query_day - datetime.timedelta(days=30)
await mb.getBalance()
Expand Down
102 changes: 0 additions & 102 deletions tests/proxy.py

This file was deleted.

3 changes: 1 addition & 2 deletions tests/sync_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
import os
from mbbank import MBBank

mb = MBBank(username=os.getenv("MBBANK_USERNAME"), password=os.getenv("MBBANK_PASSWORD"),
proxy=os.getenv("http_proxy"))
mb = MBBank(username=os.getenv("MBBANK_USERNAME"), password=os.getenv("MBBANK_PASSWORD"))
end_query_day = datetime.datetime.now()
start_query_day = end_query_day - datetime.timedelta(days=30)
mb.getBalance()
Expand Down

0 comments on commit 81d7895

Please sign in to comment.