Skip to content

Commit 5c7c563

Browse files
committed
Add quick test that the package imports
1 parent d6d1b9c commit 5c7c563

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/ci.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,8 @@ jobs:
5151
- name: Linter
5252
run: |
5353
uv run poe lint
54-
- name: Tests
54+
- name: Quick import test
5555
env:
5656
DROPBOX_CREDENTIALS_FOR_CI: ${{ secrets.DROPBOX_CREDENTIALS_FOR_CI }}
5757
if: ${{needs.secrets.outputs.valid}} == 'true'
58-
run: |
59-
if python --version | grep -q 'Python 3.13' ; then
60-
uv run poe test
61-
fi
58+
run: uv run pytest -k test_Import || exit 1

tests/test_dropboxfs.py

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ def test_list_root():
2626
fs = FullFS()
2727
assert fs.listdir('/') == fs.listdir('')
2828

29+
def test_Import():
30+
# quick test that we can import the package
31+
from datetime import UTC
32+
_ = FullFS()
33+
2934
class PyFsCompatLayer:
3035
"""PyFilesystem2 Python 3.12 compatibility layer.
3136

0 commit comments

Comments
 (0)