mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-17 23:12:56 +00:00
Update tests.md
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user