Skip to content

Commit f3db071

Browse files
committed
Rename any references to plotly/tests with just tests
1 parent 15a7028 commit f3db071

File tree

7 files changed

+15
-18
lines changed

7 files changed

+15
-18
lines changed

.circleci/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ commands:
120120
pytest tests/test_orca
121121
no_output_timeout: 20m
122122
- store_artifacts:
123-
path: plotly/tests/test_orca/images/linux/failed
123+
path: tests/test_orca/images/linux/failed
124124

125125
jobs:
126126
check-code-formatting:
@@ -322,7 +322,7 @@ jobs:
322322
command: |
323323
. venv/bin/activate
324324
locale
325-
pytest -k 'not nodev' plotly/tests/test_core
325+
pytest -k 'not nodev' tests/test_core
326326
no_output_timeout: 20m
327327
- run:
328328
name: Commit

.gitignore

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
0
22
0.html
33
iframe_figures/
4-
plotly/tests/test_orca/images/linux/failed/
4+
tests/test_orca/images/linux/failed/
55

66
*.egg-info
77

@@ -49,19 +49,16 @@ plotly.egg-info/
4949
# macOS utility file
5050
**/.DS_Store
5151

52-
plotly/tests/test_orca/images/*/failed
53-
plotly/tests/test_orca/images/*/tmp
54-
/plotly-package/plotly/tests/test_core/test_offline/plotly.min.js
52+
tests/test_orca/images/*/failed
53+
tests/test_orca/images/*/tmp
54+
tests/test_core/test_offline/plotly.min.js
5555
temp-plot.html
5656
.vscode
5757
doc/python/.ipynb_checkpoints
5858
doc/python/.mapbox_token
5959
doc/.ipynb_checkpoints
6060
tags
6161
doc/check-or-enforce-order.py
62-
63-
jupyterlab_plotly/labextension/
64-
jupyterlab_plotly/nbextension/index.js*
6562
plotly/package_data/widgetbundle.js
6663

6764
test/percy/*.html

contributing.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -263,31 +263,31 @@ Since our tests cover *all* the functionality, to prevent tons of errors from sh
263263
After you've done that, go ahead and run the test suite!
264264

265265
```bash
266-
pytest plotly/tests/
266+
pytest tests/
267267
```
268268

269269
Or for more *verbose* output:
270270

271271
```bash
272-
pytest -v plotly/tests/
272+
pytest -v tests/
273273
```
274274

275275
Either of those will run *every* test we've written for the Python API. You can get more granular by running something like:
276276

277277
```bash
278-
pytest plotly/tests/test_core/
278+
pytest tests/test_core/
279279
```
280280

281281
... or even more granular by running something like:
282282

283283
```bash
284-
pytest plotly/tests/test_plotly/test_plot.py
284+
pytest tests/test_plotly/test_plot.py
285285
```
286286

287287
or for a specific test function
288288

289289
```bash
290-
pytest plotly/tests/test_plotly/test_plot.py::test_function
290+
pytest tests/test_plotly/test_plot.py::test_function
291291
```
292292

293293
### Writing Tests

plotly/figure_factory/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ It is best to make all other functions besides `create_foo()` secret so a user c
137137
5. Tests
138138

139139
Add unit tests in
140-
`plotly/tests/test_optional/test_figure_factory/test_figure_factory.py`.
140+
`tests/test_optional/test_figure_factory/test_figure_factory.py`.
141141

142142
## Create a Pull Request
143143

tests/test_io/test_pathlib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Test compatibility with pathlib.Path.
22
33
See also relevant tests in
4-
plotly/tests/test_optional/test_kaleido/test_kaleido.py
4+
tests/test_optional/test_kaleido/test_kaleido.py
55
"""
66

77
from unittest import mock

tests/test_io/test_renderers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def test_plotly_mimetype_renderer_show(fig1, renderer):
124124

125125
# Static Image
126126
# ------------
127-
# See plotly/tests/test_orca/test_image_renderers.py
127+
# See tests/test_orca/test_image_renderers.py
128128

129129

130130
# HTML

tests/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def strip_dict_params(d1, d2, ignore=["uid"]):
4848
"""
4949
Helper function for assert_dict_equal
5050
51-
Nearly duplicate of assert_fig_equal in plotly/tests/test_optional/optional_utils.py
51+
Nearly duplicate of assert_fig_equal in tests/test_optional/optional_utils.py
5252
Removes `ignore` params from d1 and/or d2 if they exist
5353
then returns stripped dictionaries
5454

0 commit comments

Comments
 (0)