Skip to content

Commit 8c22cc2

Browse files
committed
Add by_image subdir for tests where needed
1 parent dfbdcb7 commit 8c22cc2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ build-all: $(foreach I, $(ALL_IMAGES), build/$(I)) ## build all stacks
5454

5555

5656
check-outdated/%: ## check the outdated mamba/conda packages in a stack and produce a report
57-
@TEST_IMAGE="$(REGISTRY)/$(OWNER)/$(notdir $@)" pytest tests/docker-stacks-foundation/test_outdated.py
57+
@TEST_IMAGE="$(REGISTRY)/$(OWNER)/$(notdir $@)" pytest tests/by_image/docker-stacks-foundation/test_outdated.py
5858
check-outdated-all: $(foreach I, $(ALL_IMAGES), check-outdated/$(I)) ## check all the stacks for outdated packages
5959

6060

tests/by_image/docker-stacks-foundation/test_packages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
$ make test/docker-stacks-foundation
2525
2626
# [...]
27-
# tests/docker-stacks-foundation/test_packages.py::test_python_packages
27+
# tests/by_image/docker-stacks-foundation/test_packages.py::test_python_packages
2828
# -------------------------------- live log setup --------------------------------
2929
# 2024-01-21 17:46:43 [ INFO] Starting container quay.io/jupyter/docker-stacks-foundation ... (package_helper.py:55)
3030
# 2024-01-21 17:46:43 [ INFO] Running quay.io/jupyter/docker-stacks-foundation with args {'detach': True, 'tty': True, 'command': ['bash', '-c', 'sleep infinity']} ... (conftest.py:99)

tests/by_image/docker-stacks-foundation/test_units.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
def test_units(container: TrackedContainer) -> None:
1212
"""Various units tests
13-
Add a py file in the `tests/<somestack>/units` dir, and it will be automatically tested
13+
Add a py file in the `tests/by_image/<somestack>/units` dir, and it will be automatically tested
1414
"""
1515
image = container.image_name[container.image_name.rfind("/") + 1 :]
1616
LOGGER.info(f"Running unit tests for: {image}")

0 commit comments

Comments
 (0)