Skip to content

Commit b21934d

Browse files
authored
Reorganize test directory (#312)
1 parent 5af34a4 commit b21934d

File tree

8 files changed

+7
-7
lines changed

8 files changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
flake8 setup.py dropbox example test
3737
- name: Run Unit Tests
3838
run: |
39-
pytest test/test_dropbox_unit.py
39+
pytest test/unit/test_dropbox_unit.py
4040
Docs:
4141
runs-on: macos-latest
4242
steps:

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
python setup.py install
2626
- name: Generate Unit Test Coverage
2727
run: |
28-
coverage run --rcfile=.coveragerc -m pytest test/test_dropbox_unit.py
28+
coverage run --rcfile=.coveragerc -m pytest test/unit/test_dropbox_unit.py
2929
coverage xml
3030
- name: Publish Coverage
3131
uses: codecov/codecov-action@v1.0.15
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
session,
2525
stone_serializers,
2626
)
27-
from dropbox.dropbox import PATH_ROOT_HEADER, SELECT_USER_HEADER
27+
from dropbox.dropbox_client import PATH_ROOT_HEADER, SELECT_USER_HEADER
2828
from dropbox.exceptions import (
2929
ApiError,
3030
AuthError,

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ per-file-ignores =
1717
[testenv:test_integration]
1818

1919
commands =
20-
pytest {posargs}
20+
pytest test/integration/test_dropbox.py
2121

2222
passenv =
2323
DROPBOX_REFRESH_TOKEN
@@ -57,7 +57,7 @@ usedevelop = true
5757
[testenv:coverage]
5858

5959
commands =
60-
coverage run --rcfile=.coveragerc -m pytest test/test_dropbox_unit.py
60+
coverage run --rcfile=.coveragerc -m pytest test/unit/test_dropbox_unit.py
6161
coverage report
6262

6363
deps =
@@ -66,7 +66,7 @@ deps =
6666
[testenv:codecov]
6767

6868
commands =
69-
coverage run --rcfile=.coveragerc -m pytest test/test_dropbox_unit.py
69+
coverage run --rcfile=.coveragerc -m pytest test/unit/test_dropbox_unit.py
7070
coverage xml
7171

7272
deps =
@@ -75,7 +75,7 @@ deps =
7575
[testenv:test_unit]
7676

7777
commands =
78-
pytest test/test_dropbox_unit.py
78+
pytest test/unit/test_dropbox_unit.py
7979

8080
deps =
8181
-rtest/requirements.txt

0 commit comments

Comments
 (0)