Update tests.md

This commit is contained in:
Ayaz Salikhov
2023-02-09 13:42:02 +04:00
committed by GitHub
parent 6887bf53f2
commit 643d082229

View File

@@ -22,10 +22,10 @@ defined in the [conftest.py](https://github.com/jupyter/docker-stacks/blob/main/
## Unit tests
If you want to run a python script in one of our images, you could add a unit test.
You can do this by creating a `tests/<somestack>/units/` directory, if it doesn't already exist and put your file there.
You can add a unit test if you want to run a python script in one of our images.
You should create a `tests/<somestack>/units/` directory, if it doesn't already exist and put your file there.
Files in this folder will be executed in the container when tests are run.
You could see an [example for the TensorFlow package here](https://github.com/jupyter/docker-stacks/blob/HEAD/tests/tensorflow-notebook/units/unit_tensorflow.py).
You can see an [example for the TensorFlow package here](https://github.com/jupyter/docker-stacks/blob/HEAD/tests/tensorflow-notebook/units/unit_tensorflow.py).
## Contributing New Tests