Skip to content

Commit 29543d0

Browse files
authored
Merge pull request #153 from plotly/rewrite-tests-with-dash-testing
Rewrite tests with dash testing
2 parents f7b15c1 + cd49cb5 commit 29543d0

File tree

9 files changed

+650
-784
lines changed

9 files changed

+650
-784
lines changed

.circleci/config.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
version: 2
22

33
jobs:
4+
"percy-finalize":
5+
docker:
6+
- image: percyio/agent
7+
auth:
8+
username: dashautomation
9+
password: $DASH_PAT_DOCKERHUB
10+
steps:
11+
- run: percy finalize --all
412
"node":
513
docker:
614
- image: circleci/node:8.11.3
@@ -38,6 +46,7 @@ jobs:
3846

3947
environment:
4048
PERCY_ENABLED: True
49+
PERCY_PARALLEL_TOTAL: -1
4150

4251
steps:
4352
- checkout
@@ -81,28 +90,28 @@ jobs:
8190
name: Integration Tests - Usage Apps Rendering
8291
command: |
8392
. venv/bin/activate
84-
python -m unittest tests.test_usage
93+
pytest --nopercyfinalize --headless tests/test_usage.py
8594
when: always
8695

8796
- run:
8897
name: Integration Tests - Interactions
8998
command: |
9099
. venv/bin/activate
91-
python -m unittest tests.test_interactions
100+
pytest --headless tests/test_interactions.py
92101
when: always
93102

94103
- run:
95104
name: Integration Tests - Callbacks
96105
command: |
97106
. venv/bin/activate
98-
python -m unittest tests.test_callbacks
107+
pytest --headless tests/test_callbacks.py
99108
when: always
100109

101110
- run:
102111
name: Capture Percy Snapshots
103112
command: |
104113
. venv/bin/activate
105-
python -m unittest tests.test_percy_snapshot
114+
pytest --headless tests/test_percy_snapshot.py
106115
when: always
107116

108117
"python-3.7":
@@ -127,3 +136,6 @@ workflows:
127136
context: dash-docker-hub
128137
- "node":
129138
context: dash-docker-hub
139+
- "percy-finalize":
140+
requires:
141+
- "python-3.6"

tests/IntegrationTests.py

Lines changed: 0 additions & 95 deletions
This file was deleted.

tests/requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ ipdb
88
percy
99
selenium
1010
flake8
11-
pylint
12-
pytest-dash>=2.1.1
11+
pylint==2.9.*
1312
colour==0.1.5
1413
biopython>=1.77;python_version>="3.0"
1514
biopython==1.76;python_version=="2.7"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This is directory is reserved for screenshots generated by Selenium's webdriver in `test_usage.py`, during the CircleCI builds.
2+
3+
Please do not add unecessary files to this directory (in fact, the only file should be this `readme.md`), and do not move this file.

0 commit comments

Comments
 (0)