Skip to content

Commit 3ddf627

Browse files
authored
Merge pull request #5023 from plotly/update-test-dir
Merge test and tests folder and clean up files
2 parents 4a9cc7e + a95ed3f commit 3ddf627

File tree

6 files changed

+11
-12
lines changed

6 files changed

+11
-12
lines changed

.circleci/config.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -276,24 +276,24 @@ jobs:
276276
name: Build html figures (Pandas 2)
277277
command: |
278278
. venv/bin/activate
279-
python test/percy/plotly-express.py
279+
python tests/percy/plotly-express.py
280280
- run:
281281
name: Build html figures (Pandas 1) and compare
282282
command: |
283283
. venv/bin/activate
284-
mkdir test/percy/pandas2
285-
mv test/percy/*.html test/percy/pandas2/
284+
mkdir tests/percy/pandas2
285+
mv tests/percy/*.html tests/percy/pandas2/
286286
# 1.1 is the earliest minor with Py3.9 wheels
287287
pip install "pandas==1.1.5"
288-
python test/percy/plotly-express.py
289-
python test/percy/compare-pandas.py
290-
rm -rf test/percy/pandas2
288+
python tests/percy/plotly-express.py
289+
python tests/percy/compare-pandas.py
290+
rm -rf tests/percy/pandas2
291291
- run:
292292
name: Run percy snapshots
293293
command: |
294294
npm i @percy/cli
295-
npx percy snapshot -c test/percy/snapshots.yml test/percy/
296-
rm test/percy/*.html
295+
npx percy snapshot -c tests/percy/snapshots.yml tests/percy/
296+
rm tests/percy/*.html
297297
298298
plotlyjs_dev_build:
299299
docker:

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ tags
6161
doc/check-or-enforce-order.py
6262
plotly/package_data/widgetbundle.js
6363

64-
test/percy/*.html
65-
test/percy/pandas2/*.html
64+
tests/percy/*.html
65+
tests/percy/pandas2/*.html

test/vv/lib/python2.7/site-packages/plotly/version.py

-1
This file was deleted.
File renamed without changes.

test/percy/plotly-express.py tests/percy/plotly-express.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# tested with percy.
88

99
# this directory
10-
dir_name = os.path.join("test", "percy")
10+
dir_name = os.path.join("tests", "percy")
1111

1212
# #### Scatter and Line plots
1313

File renamed without changes.

0 commit comments

Comments
 (0)