Skip to content

Commit

Permalink
dev(hansbug): add unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
HansBug committed Jul 20, 2024
1 parent f0fa83d commit c21bf9b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ jobs:
shell: bash
run: |
ls -al dist
python -c "import shutil;print(shutil.which('git_lfs', path='dist'))"
python -c "import shutil;print(shutil.which('git_raw', path='dist'))"
python -c "import os, glob;print(glob.glob(os.path.join('dist', 'git_lfs*')))"
python -c "import os, glob;print(glob.glob(os.path.join('dist', 'git_raw*')))"
- name: Run unittest
env:
CI: 'true'
Expand Down
9 changes: 6 additions & 3 deletions test/system/git/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import glob
import os.path
import shutil

_GIT_LFS = shutil.which('git_lfs', path=os.path.abspath('dist'))
_GIT_RAW = shutil.which('git_raw', path=os.path.abspath('dist'))
_GIT_LFSS = glob.glob(os.path.join('dist', 'git_lfs*'))
_GIT_LFS = _GIT_LFSS[0] if _GIT_LFSS else None

_GIT_RAWS = glob.glob(os.path.join('dist', 'git_raw*'))
_GIT_RAW = _GIT_RAWS[0] if _GIT_RAWS else None
9 changes: 6 additions & 3 deletions test/testing/requires/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import glob
import os.path
import shutil

_GIT_LFS = shutil.which('git_lfs', path=os.path.abspath('dist'))
_GIT_RAW = shutil.which('git_raw', path=os.path.abspath('dist'))
_GIT_LFSS = glob.glob(os.path.join('dist', 'git_lfs*'))
_GIT_LFS = _GIT_LFSS[0] if _GIT_LFSS else None

_GIT_RAWS = glob.glob(os.path.join('dist', 'git_raw*'))
_GIT_RAW = _GIT_RAWS[0] if _GIT_RAWS else None

0 comments on commit c21bf9b

Please sign in to comment.