Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

rename directory: `test` -> `tests` (#2743)

João Gustavo A. Amorim3f9829b339e1
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 55f0e9d8a..f0013f28b 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -73,7 +73,7 @@ jobs:
name: Run CPU tests ${{ inputs.pytorch-dtype }}
continue-on-error: ${{ inputs.continue-on-error }}
shell: bash -l {0}
- run: pytest -v --device cpu --dtype ${{ inputs.pytorch-dtype }} ${{ inputs.pytest-extra }} ./test
+ run: pytest -v --device cpu --dtype ${{ inputs.pytorch-dtype }} ${{ inputs.pytest-extra }} ./tests/
- if: ${{ inputs.coverage }}
name: Run CPU tests coverage ${{ inputs.pytorch-dtype }}
@@ -81,7 +81,7 @@ jobs:
shell: bash -l {0}
run: |
coverage erase
- coverage run -m pytest -v --device cpu --dtype ${{ inputs.pytorch-dtype }} ${{ inputs.pytest-extra }} ./test
+ coverage run -m pytest -v --device cpu --dtype ${{ inputs.pytorch-dtype }} ${{ inputs.pytest-extra }} ./tests/
- if: ${{ inputs.coverage }}
name: Coverage report
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 665d9e7ca..ef3a46c06 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -128,7 +128,7 @@ repository under your GitHub account.
As you develop your code, you should also create test cases for your code. As well as, In addition to ensuring that
the other tests continue to pass. You can run the tests with:
```bash
- $ pytest test/<TEST_TO_RUN>.py --dtype=float32,float64 --device=all
+ $ pytest tests/<TEST_TO_RUN>.py --dtype=float32,float64 --device=all
```
With the `dtype` argument, run the tests using tensors with all `dtypes` desired. Options: `bfloat16`, `float16`,
`float32`, `float64`, and `all`.
diff --git a/Makefile b/Makefile
index 220311b37..1e4822429 100644
--- a/Makefile
+++ b/Makefile
@@ -3,19 +3,19 @@
test: mypy lint build-docs test-all
test-all: FORCE
- pytest -v --device all --dtype all --cov=kornia test/
+ pytest -v --device all --dtype all --cov=kornia tests/
test-cpu: FORCE
- pytest -v --device cpu --dtype all --cov=kornia test/
+ pytest -v --device cpu --dtype all --cov=kornia tests/
test-cuda: FORCE
- pytest -v --device cuda --dtype all --cov=kornia test/
+ pytest -v --device cuda --dtype all --cov=kornia tests/
test-mps: FORCE
- pytest -v --device mps --dtype float32 -k "not (grad or exception or jit or dynamo)" test/
+ pytest -v --device mps --dtype float32 -k "not (grad or exception or jit or dynamo)" tests/
test-module: FORCE
- pytest -v --device all --dtype all test/$(module)
+ pytest -v --device all --dtype all tests/$(module)
test-jit: FORCE
pytest -v --device all --dtype all -m jit
@@ -33,7 +33,7 @@ test-slow: FORCE
pytest -v --device all --dtype all -m "(jit or grad or nn)"
test-coverage: FORCE
- coverage erase && coverage run --source kornia/ -m pytest --device=all --dtype float32,float64 test/ && coverage report
+ coverage erase && coverage run --source kornia/ -m pytest --device=all --dtype float32,float64 tests/ && coverage report
lint: FORCE
pre-commit run ruff --all-files
@@ -57,7 +57,7 @@ install-dev: FORCE
python setup.py develop
benchmark: FORCE
- for f in test/performance/*.py ; do python -utt $${f}; done
+ for f in tests/performance/*.py ; do python -utt $${f}; done
uninstall: FORCE
pip uninstall kornia
diff --git a/docker/tpu-tests/tpu_test_cases.jsonnet b/docker/tpu-tests/tpu_test_cases.jsonnet
index b7bd817e3..981da077e 100644
--- a/docker/tpu-tests/tpu_test_cases.jsonnet
+++ b/docker/tpu-tests/tpu_test_cases.jsonnet
@@ -23,7 +23,7 @@ local tputests = base.BaseTest {
python -c "import torch; print(torch.__version__)"
python -c "import torch_xla; print(torch_xla.__version__)"
python -c "import kornia; print(kornia.__version__)"
- pytest -v kornia/test/color kornia/test/enhance kornia/test/filters kornia/test/test_losses.py --device tpu --dtype float32 -k "not grad"
+ pytest -v kornia/tests/color kornia/tests/enhance kornia/tests/filters kornia/tests/test_losses.py --device tpu --dtype float32 -k "not grad"
test_exit_code=$?
echo "\nFinished running commands.\n"
test $test_exit_code -eq 0
diff --git a/pyproject.toml b/pyproject.toml
index 0acfa13b2..d2f698429 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -163,11 +163,10 @@ requires = [
"docs/*" = ["S101", "PLR0912", "PLR0915"] # allow assert, ignore max branches and statements
"docs/generate_examples.py" = ["C901"] # Allow too complex function
"kornia/__init__.py" = ["I001"] # Allow unsorted imports
- "test/*" = ["S101", "S311", "BLE", "RUF012", "RUF005"] # allow assert, random, ignore BLE, mutable class attr
+ "tests/*" = ["S101", "S311", "BLE", "RUF012", "RUF005"] # allow assert, random, ignore BLE, mutable class attr
[tool.pytest.ini_options]
addopts = "--color=yes"
- testpaths = ["test"]
markers =[
"grad: mark a test as gradcheck test",
"jit: mark a test as torchscript test",
diff --git a/test/__init__.py b/tests/__init__.py
similarity index 100%
rename from test/__init__.py
rename to tests/__init__.py
diff --git a/test/augmentation/test_augmentation.py b/tests/augmentation/test_augmentation.py
similarity index 100%
rename from test/augmentation/test_augmentation.py
rename to tests/augmentation/test_augmentation.py
diff --git a/test/augmentation/test_augmentation_3d.py b/tests/augmentation/test_augmentation_3d.py
similarity index 100%
rename from test/augmentation/test_augmentation_3d.py
rename to tests/augmentation/test_augmentation_3d.py
diff --git a/test/augmentation/test_augmentation_mix.py b/tests/augmentation/test_augmentation_mix.py
similarity index 100%
rename from test/augmentation/test_augmentation_mix.py
rename to tests/augmentation/test_augmentation_mix.py
diff --git a/test/augmentation/test_auto_operation.py b/tests/augmentation/test_auto_operation.py
similarity index 98%
rename from test/augmentation/test_auto_operation.py
rename to tests/augmentation/test_auto_operation.py
index 5c1848694..2635193a8 100644
--- a/test/augmentation/test_auto_operation.py
+++ b/tests/augmentation/test_auto_operation.py
@@ -13,7 +13,7 @@ from kornia.augmentation.container import AugmentationSequential
from kornia.geometry.bbox import bbox_to_mask
from kornia.testing import assert_close
from kornia.utils._compat import torch_version
-from test.augmentation.test_container import reproducibility_test
+from tests.augmentation.test_container import reproducibility_test
def _find_all_ops() -> List[OperationBase]:
diff --git a/test/augmentation/test_backward.py b/tests/augmentation/test_backward.py
similarity index 100%
rename from test/augmentation/test_backward.py
rename to tests/augmentation/test_backward.py
diff --git a/test/augmentation/test_backward_3d.py b/tests/augmentation/test_backward_3d.py
similarity index 100%
rename from test/augmentation/test_backward_3d.py
rename to tests/augmentation/test_backward_3d.py
diff --git a/test/augmentation/test_base.py b/tests/augmentation/test_base.py
similarity index 100%
rename from test/augmentation/test_base.py
rename to tests/augmentation/test_base.py
diff --git a/test/augmentation/test_container.py b/tests/augmentation/test_container.py
similarity index 100%
rename from test/augmentation/test_container.py
rename to tests/augmentation/test_container.py
diff --git a/test/augmentation/test_dist_mapper.py b/tests/augmentation/test_dist_mapper.py
similarity index 100%
rename from test/augmentation/test_dist_mapper.py
rename to tests/augmentation/test_dist_mapper.py
diff --git a/test/augmentation/test_motionblur.py b/tests/augmentation/test_motionblur.py
similarity index 100%
rename from test/augmentation/test_motionblur.py
rename to tests/augmentation/test_motionblur.py
diff --git a/test/augmentation/test_perspective_rand.py b/tests/augmentation/test_perspective_rand.py
similarity index 100%
rename from test/augmentation/test_perspective_rand.py
rename to tests/augmentation/test_perspective_rand.py
diff --git a/test/augmentation/test_random_generator.py b/tests/augmentation/test_random_generator.py
similarity index 100%
rename from test/augmentation/test_random_generator.py
rename to tests/augmentation/test_random_generator.py
diff --git a/test/augmentation/test_random_generator_3d.py b/tests/augmentation/test_random_generator_3d.py
similarity index 100%
rename from test/augmentation/test_random_generator_3d.py
rename to tests/augmentation/test_random_generator_3d.py
diff --git a/test/benchmark.py b/tests/benchmark.py
similarity index 100%
rename from test/benchmark.py
rename to tests/benchmark.py
diff --git a/test/color/test_colormap.py b/tests/color/test_colormap.py
similarity index 100%
rename from test/color/test_colormap.py
rename to tests/color/test_colormap.py
diff --git a/test/color/test_gray.py b/tests/color/test_gray.py
similarity index 100%
rename from test/color/test_gray.py
rename to tests/color/test_gray.py
diff --git a/test/color/test_hls.py b/tests/color/test_hls.py
similarity index 100%
rename from test/color/test_hls.py
rename to tests/color/test_hls.py
diff --git a/test/color/test_hsv.py b/tests/color/test_hsv.py
similarity index 100%
rename from test/color/test_hsv.py
rename to tests/color/test_hsv.py
diff --git a/test/color/test_lab.py b/tests/color/test_lab.py
similarity index 100%
rename from test/color/test_lab.py
rename to tests/color/test_lab.py
diff --git a/test/color/test_luv.py b/tests/color/test_luv.py
similarity index 100%
rename from test/color/test_luv.py
rename to tests/color/test_luv.py
diff --git a/test/color/test_raw.py b/tests/color/test_raw.py
similarity index 100%
rename from test/color/test_raw.py
rename to tests/color/test_raw.py
diff --git a/test/color/test_rgb.py b/tests/color/test_rgb.py
similarity index 100%
rename from test/color/test_rgb.py
rename to tests/color/test_rgb.py
diff --git a/test/color/test_sepia.py b/tests/color/test_sepia.py
similarity index 100%
rename from test/color/test_sepia.py
rename to tests/color/test_sepia.py
diff --git a/test/color/test_xyz.py b/tests/color/test_xyz.py
similarity index 100%
rename from test/color/test_xyz.py
rename to tests/color/test_xyz.py
diff --git a/test/color/test_ycbcr.py b/tests/color/test_ycbcr.py
similarity index 100%
rename from test/color/test_ycbcr.py
rename to tests/color/test_ycbcr.py
diff --git a/test/color/test_yuv.py b/tests/color/test_yuv.py
similarity index 100%
rename from test/color/test_yuv.py
rename to tests/color/test_yuv.py
diff --git a/test/contrib/__init__.py b/tests/contrib/__init__.py
similarity index 100%
rename from test/contrib/__init__.py
rename to tests/contrib/__init__.py
diff --git a/test/contrib/models/__init__.py b/tests/contrib/models/__init__.py
similarity index 100%
rename from test/contrib/models/__init__.py
rename to tests/contrib/models/__init__.py
diff --git a/test/contrib/models/test_efficient_vit.py b/tests/contrib/models/test_efficient_vit.py
similarity index 100%
rename from test/contrib/models/test_efficient_vit.py
rename to tests/contrib/models/test_efficient_vit.py
diff --git a/test/contrib/models/test_rt_detr.py b/tests/contrib/models/test_rt_detr.py
similarity index 100%
rename from test/contrib/models/test_rt_detr.py
rename to tests/contrib/models/test_rt_detr.py
diff --git a/test/contrib/models/test_sam.py b/tests/contrib/models/test_sam.py
similarity index 100%
rename from test/contrib/models/test_sam.py
rename to tests/contrib/models/test_sam.py
diff --git a/test/contrib/models/test_tiny_vit.py b/tests/contrib/models/test_tiny_vit.py
similarity index 100%
rename from test/contrib/models/test_tiny_vit.py
rename to tests/contrib/models/test_tiny_vit.py
diff --git a/test/contrib/test_contrib.py b/tests/contrib/test_contrib.py
similarity index 100%
rename from test/contrib/test_contrib.py
rename to tests/contrib/test_contrib.py
diff --git a/test/contrib/test_prompter.py b/tests/contrib/test_prompter.py
similarity index 100%
rename from test/contrib/test_prompter.py
rename to tests/contrib/test_prompter.py
diff --git a/test/core/test_check.py b/tests/core/test_check.py
similarity index 100%
rename from test/core/test_check.py
rename to tests/core/test_check.py
diff --git a/test/core/test_tensor_wrapper.py b/tests/core/test_tensor_wrapper.py
similarity index 100%
rename from test/core/test_tensor_wrapper.py
rename to tests/core/test_tensor_wrapper.py
diff --git a/test/enhance/test_adjust.py b/tests/enhance/test_adjust.py
similarity index 100%
rename from test/enhance/test_adjust.py
rename to tests/enhance/test_adjust.py
diff --git a/test/enhance/test_core.py b/tests/enhance/test_core.py
similarity index 100%
rename from test/enhance/test_core.py
rename to tests/enhance/test_core.py
diff --git a/test/enhance/test_equalization.py b/tests/enhance/test_equalization.py
similarity index 100%
rename from test/enhance/test_equalization.py
rename to tests/enhance/test_equalization.py
diff --git a/test/enhance/test_histogram.py b/tests/enhance/test_histogram.py
similarity index 100%
rename from test/enhance/test_histogram.py
rename to tests/enhance/test_histogram.py
diff --git a/test/enhance/test_integral.py b/tests/enhance/test_integral.py
similarity index 100%
rename from test/enhance/test_integral.py
rename to tests/enhance/test_integral.py
diff --git a/test/enhance/test_normalize.py b/tests/enhance/test_normalize.py
similarity index 100%
rename from test/enhance/test_normalize.py
rename to tests/enhance/test_normalize.py
diff --git a/test/enhance/test_shift_rgb.py b/tests/enhance/test_shift_rgb.py
similarity index 100%
rename from test/enhance/test_shift_rgb.py
rename to tests/enhance/test_shift_rgb.py
diff --git a/test/enhance/test_zca.py b/tests/enhance/test_zca.py
similarity index 100%
rename from test/enhance/test_zca.py
rename to tests/enhance/test_zca.py
diff --git a/test/feature/test_affine_shape_estimator.py b/tests/feature/test_affine_shape_estimator.py
similarity index 100%
rename from test/feature/test_affine_shape_estimator.py
rename to tests/feature/test_affine_shape_estimator.py
diff --git a/test/feature/test_defmo.py b/tests/feature/test_defmo.py
similarity index 100%
rename from test/feature/test_defmo.py
rename to tests/feature/test_defmo.py
diff --git a/test/feature/test_disk.py b/tests/feature/test_disk.py
similarity index 100%
rename from test/feature/test_disk.py
rename to tests/feature/test_disk.py
diff --git a/test/feature/test_hardnet.py b/tests/feature/test_hardnet.py
similarity index 100%
rename from test/feature/test_hardnet.py
rename to tests/feature/test_hardnet.py
diff --git a/test/feature/test_hynet.py b/tests/feature/test_hynet.py
similarity index 100%
rename from test/feature/test_hynet.py
rename to tests/feature/test_hynet.py
diff --git a/test/feature/test_integrated.py b/tests/feature/test_integrated.py
similarity index 100%
rename from test/feature/test_integrated.py
rename to tests/feature/test_integrated.py
diff --git a/test/feature/test_keynet.py b/tests/feature/test_keynet.py
similarity index 100%
rename from test/feature/test_keynet.py
rename to tests/feature/test_keynet.py
diff --git a/test/feature/test_laf.py b/tests/feature/test_laf.py
similarity index 100%
rename from test/feature/test_laf.py
rename to tests/feature/test_laf.py
diff --git a/test/feature/test_lightglue_onnx.py b/tests/feature/test_lightglue_onnx.py
similarity index 100%
rename from test/feature/test_lightglue_onnx.py
rename to tests/feature/test_lightglue_onnx.py
diff --git a/test/feature/test_local_features_orientation.py b/tests/feature/test_local_features_orientation.py
similarity index 100%
rename from test/feature/test_local_features_orientation.py
rename to tests/feature/test_local_features_orientation.py
diff --git a/test/feature/test_loftr.py b/tests/feature/test_loftr.py
similarity index 100%
rename from test/feature/test_loftr.py
rename to tests/feature/test_loftr.py
diff --git a/test/feature/test_matching.py b/tests/feature/test_matching.py
similarity index 100%
rename from test/feature/test_matching.py
rename to tests/feature/test_matching.py
diff --git a/test/feature/test_mkd.py b/tests/feature/test_mkd.py
similarity index 100%
rename from test/feature/test_mkd.py
rename to tests/feature/test_mkd.py
diff --git a/test/feature/test_responces_local_features.py b/tests/feature/test_responces_local_features.py
similarity index 100%
rename from test/feature/test_responces_local_features.py
rename to tests/feature/test_responces_local_features.py
diff --git a/test/feature/test_scale_space_detector.py b/tests/feature/test_scale_space_detector.py
similarity index 100%
rename from test/feature/test_scale_space_detector.py
rename to tests/feature/test_scale_space_detector.py
diff --git a/test/feature/test_siftdesc.py b/tests/feature/test_siftdesc.py
similarity index 100%
rename from test/feature/test_siftdesc.py
rename to tests/feature/test_siftdesc.py
diff --git a/test/feature/test_sold2.py b/tests/feature/test_sold2.py
similarity index 100%
rename from test/feature/test_sold2.py
rename to tests/feature/test_sold2.py
diff --git a/test/feature/test_sosnet.py b/tests/feature/test_sosnet.py
similarity index 100%
rename from test/feature/test_sosnet.py
rename to tests/feature/test_sosnet.py
diff --git a/test/feature/test_tfeat.py b/tests/feature/test_tfeat.py
similarity index 100%
rename from test/feature/test_tfeat.py
rename to tests/feature/test_tfeat.py
diff --git a/test/filters/test_bilateral.py b/tests/filters/test_bilateral.py
similarity index 100%
rename from test/filters/test_bilateral.py
rename to tests/filters/test_bilateral.py
diff --git a/test/filters/test_blur.py b/tests/filters/test_blur.py
similarity index 100%
rename from test/filters/test_blur.py
rename to tests/filters/test_blur.py
diff --git a/test/filters/test_blur_pool.py b/tests/filters/test_blur_pool.py
similarity index 100%
rename from test/filters/test_blur_pool.py
rename to tests/filters/test_blur_pool.py
diff --git a/test/filters/test_canny.py b/tests/filters/test_canny.py
similarity index 100%
rename from test/filters/test_canny.py
rename to tests/filters/test_canny.py
diff --git a/test/filters/test_filters.py b/tests/filters/test_filters.py
similarity index 100%
rename from test/filters/test_filters.py
rename to tests/filters/test_filters.py
diff --git a/test/filters/test_gaussian.py b/tests/filters/test_gaussian.py
similarity index 100%
rename from test/filters/test_gaussian.py
rename to tests/filters/test_gaussian.py
diff --git a/test/filters/test_guided.py b/tests/filters/test_guided.py
similarity index 100%
rename from test/filters/test_guided.py
rename to tests/filters/test_guided.py
diff --git a/test/filters/test_hanning.py b/tests/filters/test_hanning.py
similarity index 100%
rename from test/filters/test_hanning.py
rename to tests/filters/test_hanning.py
diff --git a/test/filters/test_laplacian.py b/tests/filters/test_laplacian.py
similarity index 100%
rename from test/filters/test_laplacian.py
rename to tests/filters/test_laplacian.py
diff --git a/test/filters/test_median.py b/tests/filters/test_median.py
similarity index 100%
rename from test/filters/test_median.py
rename to tests/filters/test_median.py
diff --git a/test/filters/test_motion.py b/tests/filters/test_motion.py
similarity index 100%
rename from test/filters/test_motion.py
rename to tests/filters/test_motion.py
diff --git a/test/filters/test_sobel.py b/tests/filters/test_sobel.py
similarity index 100%
rename from test/filters/test_sobel.py
rename to tests/filters/test_sobel.py
diff --git a/test/filters/test_unsharp_mask.py b/tests/filters/test_unsharp_mask.py
similarity index 100%
rename from test/filters/test_unsharp_mask.py
rename to tests/filters/test_unsharp_mask.py
diff --git a/test/geometry/__init__.py b/tests/geometry/__init__.py
similarity index 100%
rename from test/geometry/__init__.py
rename to tests/geometry/__init__.py
diff --git a/test/geometry/calibration/test_distort.py b/tests/geometry/calibration/test_distort.py
similarity index 100%
rename from test/geometry/calibration/test_distort.py
rename to tests/geometry/calibration/test_distort.py
diff --git a/test/geometry/calibration/test_pnp.py b/tests/geometry/calibration/test_pnp.py
similarity index 100%
rename from test/geometry/calibration/test_pnp.py
rename to tests/geometry/calibration/test_pnp.py
diff --git a/test/geometry/calibration/test_undistort.py b/tests/geometry/calibration/test_undistort.py
similarity index 100%
rename from test/geometry/calibration/test_undistort.py
rename to tests/geometry/calibration/test_undistort.py
diff --git a/test/geometry/camera/test_distortion.py b/tests/geometry/camera/test_distortion.py
similarity index 100%
rename from test/geometry/camera/test_distortion.py
rename to tests/geometry/camera/test_distortion.py
diff --git a/test/geometry/camera/test_perspective.py b/tests/geometry/camera/test_perspective.py
similarity index 100%
rename from test/geometry/camera/test_perspective.py
rename to tests/geometry/camera/test_perspective.py
diff --git a/test/geometry/camera/test_pinhole.py b/tests/geometry/camera/test_pinhole.py
similarity index 100%
rename from test/geometry/camera/test_pinhole.py
rename to tests/geometry/camera/test_pinhole.py
diff --git a/test/geometry/camera/test_projections.py b/tests/geometry/camera/test_projections.py
similarity index 100%
rename from test/geometry/camera/test_projections.py
rename to tests/geometry/camera/test_projections.py
diff --git a/test/geometry/camera/test_stereo.py b/tests/geometry/camera/test_stereo.py
similarity index 100%
rename from test/geometry/camera/test_stereo.py
rename to tests/geometry/camera/test_stereo.py
diff --git a/test/geometry/epipolar/test_common.py b/tests/geometry/epipolar/test_common.py
similarity index 100%
rename from test/geometry/epipolar/test_common.py
rename to tests/geometry/epipolar/test_common.py
diff --git a/test/geometry/epipolar/test_epipolar_metrics.py b/tests/geometry/epipolar/test_epipolar_metrics.py
similarity index 100%
rename from test/geometry/epipolar/test_epipolar_metrics.py
rename to tests/geometry/epipolar/test_epipolar_metrics.py
diff --git a/test/geometry/epipolar/test_essential.py b/tests/geometry/epipolar/test_essential.py
similarity index 100%
rename from test/geometry/epipolar/test_essential.py
rename to tests/geometry/epipolar/test_essential.py
diff --git a/test/geometry/epipolar/test_fundamental.py b/tests/geometry/epipolar/test_fundamental.py
similarity index 100%
rename from test/geometry/epipolar/test_fundamental.py
rename to tests/geometry/epipolar/test_fundamental.py
diff --git a/test/geometry/epipolar/test_numeric.py b/tests/geometry/epipolar/test_numeric.py
similarity index 100%
rename from test/geometry/epipolar/test_numeric.py
rename to tests/geometry/epipolar/test_numeric.py
diff --git a/test/geometry/epipolar/test_projection.py b/tests/geometry/epipolar/test_projection.py
similarity index 100%
rename from test/geometry/epipolar/test_projection.py
rename to tests/geometry/epipolar/test_projection.py
diff --git a/test/geometry/epipolar/test_triangulation.py b/tests/geometry/epipolar/test_triangulation.py
similarity index 100%
rename from test/geometry/epipolar/test_triangulation.py
rename to tests/geometry/epipolar/test_triangulation.py
diff --git a/test/geometry/liegroup/test_se2.py b/tests/geometry/liegroup/test_se2.py
similarity index 100%
rename from test/geometry/liegroup/test_se2.py
rename to tests/geometry/liegroup/test_se2.py
diff --git a/test/geometry/liegroup/test_se3.py b/tests/geometry/liegroup/test_se3.py
similarity index 100%
rename from test/geometry/liegroup/test_se3.py
rename to tests/geometry/liegroup/test_se3.py
diff --git a/test/geometry/liegroup/test_so2.py b/tests/geometry/liegroup/test_so2.py
similarity index 100%
rename from test/geometry/liegroup/test_so2.py
rename to tests/geometry/liegroup/test_so2.py
diff --git a/test/geometry/liegroup/test_so3.py b/tests/geometry/liegroup/test_so3.py
similarity index 100%
rename from test/geometry/liegroup/test_so3.py
rename to tests/geometry/liegroup/test_so3.py
diff --git a/test/geometry/solvers/test_polynomial_solver.py b/tests/geometry/solvers/test_polynomial_solver.py
similarity index 100%
rename from test/geometry/solvers/test_polynomial_solver.py
rename to tests/geometry/solvers/test_polynomial_solver.py
diff --git a/test/geometry/subpix/test_dsnt.py b/tests/geometry/subpix/test_dsnt.py
similarity index 100%
rename from test/geometry/subpix/test_dsnt.py
rename to tests/geometry/subpix/test_dsnt.py
diff --git a/test/geometry/subpix/test_nms.py b/tests/geometry/subpix/test_nms.py
similarity index 100%
rename from test/geometry/subpix/test_nms.py
rename to tests/geometry/subpix/test_nms.py
diff --git a/test/geometry/subpix/test_spatial_softargmax.py b/tests/geometry/subpix/test_spatial_softargmax.py
similarity index 100%
rename from test/geometry/subpix/test_spatial_softargmax.py
rename to tests/geometry/subpix/test_spatial_softargmax.py
diff --git a/test/geometry/test_bbox.py b/tests/geometry/test_bbox.py
similarity index 100%
rename from test/geometry/test_bbox.py
rename to tests/geometry/test_bbox.py
diff --git a/test/geometry/test_boxes.py b/tests/geometry/test_boxes.py
similarity index 100%
rename from test/geometry/test_boxes.py
rename to tests/geometry/test_boxes.py
diff --git a/test/geometry/test_conversions.py b/tests/geometry/test_conversions.py
similarity index 100%
rename from test/geometry/test_conversions.py
rename to tests/geometry/test_conversions.py
diff --git a/test/geometry/test_depth.py b/tests/geometry/test_depth.py
similarity index 100%
rename from test/geometry/test_depth.py
rename to tests/geometry/test_depth.py
diff --git a/test/geometry/test_depth_warper.py b/tests/geometry/test_depth_warper.py
similarity index 100%
rename from test/geometry/test_depth_warper.py
rename to tests/geometry/test_depth_warper.py
diff --git a/test/geometry/test_homography.py b/tests/geometry/test_homography.py
similarity index 100%
rename from test/geometry/test_homography.py
rename to tests/geometry/test_homography.py
diff --git a/test/geometry/test_linalg.py b/tests/geometry/test_linalg.py
similarity index 100%
rename from test/geometry/test_linalg.py
rename to tests/geometry/test_linalg.py
diff --git a/test/geometry/test_line.py b/tests/geometry/test_line.py
similarity index 100%
rename from test/geometry/test_line.py
rename to tests/geometry/test_line.py
diff --git a/test/geometry/test_plane.py b/tests/geometry/test_plane.py
similarity index 100%
rename from test/geometry/test_plane.py
rename to tests/geometry/test_plane.py
diff --git a/test/geometry/test_pose.py b/tests/geometry/test_pose.py
similarity index 100%
rename from test/geometry/test_pose.py
rename to tests/geometry/test_pose.py
diff --git a/test/geometry/test_quaternion.py b/tests/geometry/test_quaternion.py
similarity index 100%
rename from test/geometry/test_quaternion.py
rename to tests/geometry/test_quaternion.py
diff --git a/test/geometry/test_ransac.py b/tests/geometry/test_ransac.py
similarity index 100%
rename from test/geometry/test_ransac.py
rename to tests/geometry/test_ransac.py
diff --git a/test/geometry/test_vector.py b/tests/geometry/test_vector.py
similarity index 100%
rename from test/geometry/test_vector.py
rename to tests/geometry/test_vector.py
diff --git a/test/geometry/transform/test_affine.py b/tests/geometry/transform/test_affine.py
similarity index 100%
rename from test/geometry/transform/test_affine.py
rename to tests/geometry/transform/test_affine.py
diff --git a/test/geometry/transform/test_crop2d.py b/tests/geometry/transform/test_crop2d.py
similarity index 100%
rename from test/geometry/transform/test_crop2d.py
rename to tests/geometry/transform/test_crop2d.py
diff --git a/test/geometry/transform/test_crop3d.py b/tests/geometry/transform/test_crop3d.py
similarity index 100%
rename from test/geometry/transform/test_crop3d.py
rename to tests/geometry/transform/test_crop3d.py
diff --git a/test/geometry/transform/test_elastic_transform.py b/tests/geometry/transform/test_elastic_transform.py
similarity index 100%
rename from test/geometry/transform/test_elastic_transform.py
rename to tests/geometry/transform/test_elastic_transform.py
diff --git a/test/geometry/transform/test_flip.py b/tests/geometry/transform/test_flip.py
similarity index 100%
rename from test/geometry/transform/test_flip.py
rename to tests/geometry/transform/test_flip.py
diff --git a/test/geometry/transform/test_homography_warper.py b/tests/geometry/transform/test_homography_warper.py
similarity index 100%
rename from test/geometry/transform/test_homography_warper.py
rename to tests/geometry/transform/test_homography_warper.py
diff --git a/test/geometry/transform/test_image_registrator.py b/tests/geometry/transform/test_image_registrator.py
similarity index 100%
rename from test/geometry/transform/test_image_registrator.py
rename to tests/geometry/transform/test_image_registrator.py
diff --git a/test/geometry/transform/test_imgwarp.py b/tests/geometry/transform/test_imgwarp.py
similarity index 100%
rename from test/geometry/transform/test_imgwarp.py
rename to tests/geometry/transform/test_imgwarp.py
diff --git a/test/geometry/transform/test_imgwarp3d.py b/tests/geometry/transform/test_imgwarp3d.py
similarity index 100%
rename from test/geometry/transform/test_imgwarp3d.py
rename to tests/geometry/transform/test_imgwarp3d.py
diff --git a/test/geometry/transform/test_pyramid.py b/tests/geometry/transform/test_pyramid.py
similarity index 100%
rename from test/geometry/transform/test_pyramid.py
rename to tests/geometry/transform/test_pyramid.py
diff --git a/test/geometry/transform/test_thin_plate_spline.py b/tests/geometry/transform/test_thin_plate_spline.py
similarity index 100%
rename from test/geometry/transform/test_thin_plate_spline.py
rename to tests/geometry/transform/test_thin_plate_spline.py
diff --git a/test/grad_estimator/test_ste.py b/tests/grad_estimator/test_ste.py
similarity index 100%
rename from test/grad_estimator/test_ste.py
rename to tests/grad_estimator/test_ste.py
diff --git a/test/image/test_image.py b/tests/image/test_image.py
similarity index 100%
rename from test/image/test_image.py
rename to tests/image/test_image.py
diff --git a/test/integration/test_conversions.py b/tests/integration/test_conversions.py
similarity index 100%
rename from test/integration/test_conversions.py
rename to tests/integration/test_conversions.py
diff --git a/test/integration/test_focal.py b/tests/integration/test_focal.py
similarity index 100%
rename from test/integration/test_focal.py
rename to tests/integration/test_focal.py
diff --git a/test/integration/test_soft_argmax2d.py b/tests/integration/test_soft_argmax2d.py
similarity index 100%
rename from test/integration/test_soft_argmax2d.py
rename to tests/integration/test_soft_argmax2d.py
diff --git a/test/integration/test_warp.py b/tests/integration/test_warp.py
similarity index 100%
rename from test/integration/test_warp.py
rename to tests/integration/test_warp.py
diff --git a/test/io/test_io_image.py b/tests/io/test_io_image.py
similarity index 100%
rename from test/io/test_io_image.py
rename to tests/io/test_io_image.py
diff --git a/test/losses/test_hd.py b/tests/losses/test_hd.py
similarity index 100%
rename from test/losses/test_hd.py
rename to tests/losses/test_hd.py
diff --git a/test/losses/test_losses.py b/tests/losses/test_losses.py
similarity index 100%
rename from test/losses/test_losses.py
rename to tests/losses/test_losses.py
diff --git a/test/losses/test_ssim.py b/tests/losses/test_ssim.py
similarity index 100%
rename from test/losses/test_ssim.py
rename to tests/losses/test_ssim.py
diff --git a/test/morphology/test_bottom_hat.py b/tests/morphology/test_bottom_hat.py
similarity index 100%
rename from test/morphology/test_bottom_hat.py
rename to tests/morphology/test_bottom_hat.py
diff --git a/test/morphology/test_closing.py b/tests/morphology/test_closing.py
similarity index 100%
rename from test/morphology/test_closing.py
rename to tests/morphology/test_closing.py
diff --git a/test/morphology/test_dilation.py b/tests/morphology/test_dilation.py
similarity index 100%
rename from test/morphology/test_dilation.py
rename to tests/morphology/test_dilation.py
diff --git a/test/morphology/test_erosion.py b/tests/morphology/test_erosion.py
similarity index 100%
rename from test/morphology/test_erosion.py
rename to tests/morphology/test_erosion.py
diff --git a/test/morphology/test_gradient.py b/tests/morphology/test_gradient.py
similarity index 100%
rename from test/morphology/test_gradient.py
rename to tests/morphology/test_gradient.py
diff --git a/test/morphology/test_opening.py b/tests/morphology/test_opening.py
similarity index 100%
rename from test/morphology/test_opening.py
rename to tests/morphology/test_opening.py
diff --git a/test/morphology/test_top_hat.py b/tests/morphology/test_top_hat.py
similarity index 100%
rename from test/morphology/test_top_hat.py
rename to tests/morphology/test_top_hat.py
diff --git a/test/nerf/test_camera_utils.py b/tests/nerf/test_camera_utils.py
similarity index 100%
rename from test/nerf/test_camera_utils.py
rename to tests/nerf/test_camera_utils.py
diff --git a/test/nerf/test_data_utils.py b/tests/nerf/test_data_utils.py
similarity index 97%
rename from test/nerf/test_data_utils.py
rename to tests/nerf/test_data_utils.py
index 74b76add4..5d3f47413 100755
--- a/test/nerf/test_data_utils.py
+++ b/tests/nerf/test_data_utils.py
@@ -6,7 +6,7 @@ from kornia.core import Device, Tensor
from kornia.geometry.camera import PinholeCamera
from kornia.nerf.data_utils import RayDataset, instantiate_ray_dataloader
from kornia.testing import assert_close
-from test.nerf.test_rays import create_four_cameras
+from tests.nerf.test_rays import create_four_cameras
def create_random_images_for_cameras(cameras: PinholeCamera) -> list[Tensor]:
diff --git a/test/nerf/test_nerf_model.py b/tests/nerf/test_nerf_model.py
similarity index 100%
rename from test/nerf/test_nerf_model.py
rename to tests/nerf/test_nerf_model.py
diff --git a/test/nerf/test_nerf_solver.py b/tests/nerf/test_nerf_solver.py
similarity index 94%
rename from test/nerf/test_nerf_solver.py
rename to tests/nerf/test_nerf_solver.py
index a823be1ba..7a4e4bb52 100755
--- a/test/nerf/test_nerf_solver.py
+++ b/tests/nerf/test_nerf_solver.py
@@ -6,8 +6,8 @@ from kornia.geometry.camera import PinholeCamera
from kornia.nerf.nerf_model import NerfModelRenderer
from kornia.nerf.nerf_solver import NerfSolver
from kornia.testing import assert_close
-from test.nerf.test_data_utils import create_random_images_for_cameras, create_red_images_for_cameras
-from test.nerf.test_rays import create_four_cameras, create_one_camera
+from tests.nerf.test_data_utils import create_random_images_for_cameras, create_red_images_for_cameras
+from tests.nerf.test_rays import create_four_cameras, create_one_camera
class TestNerfSolver:
diff --git a/test/nerf/test_positional_encoder.py b/tests/nerf/test_positional_encoder.py
similarity index 100%
rename from test/nerf/test_positional_encoder.py
rename to tests/nerf/test_positional_encoder.py
diff --git a/test/nerf/test_rays.py b/tests/nerf/test_rays.py
similarity index 100%
rename from test/nerf/test_rays.py
rename to tests/nerf/test_rays.py
diff --git a/test/nerf/test_renderer.py b/tests/nerf/test_renderer.py
similarity index 100%
rename from test/nerf/test_renderer.py
rename to tests/nerf/test_renderer.py
diff --git a/test/performance/test_imgwarp_speed.py b/tests/performance/test_imgwarp_speed.py
similarity index 100%
rename from test/performance/test_imgwarp_speed.py
rename to tests/performance/test_imgwarp_speed.py
diff --git a/test/performance/test_project_points_speed.py b/tests/performance/test_project_points_speed.py
similarity index 100%
rename from test/performance/test_project_points_speed.py
rename to tests/performance/test_project_points_speed.py
diff --git a/test/sensors/camera/test_camera_model.py b/tests/sensors/camera/test_camera_model.py
similarity index 100%
rename from test/sensors/camera/test_camera_model.py
rename to tests/sensors/camera/test_camera_model.py
diff --git a/test/sensors/camera/test_distortion_model.py b/tests/sensors/camera/test_distortion_model.py
similarity index 100%
rename from test/sensors/camera/test_distortion_model.py
rename to tests/sensors/camera/test_distortion_model.py
diff --git a/test/sensors/camera/test_projection_model.py b/tests/sensors/camera/test_projection_model.py
similarity index 100%
rename from test/sensors/camera/test_projection_model.py
rename to tests/sensors/camera/test_projection_model.py
diff --git a/test/smoke_test.py b/tests/smoke_test.py
similarity index 100%
rename from test/smoke_test.py
rename to tests/smoke_test.py
diff --git a/test/test_metrics.py b/tests/test_metrics.py
similarity index 100%
rename from test/test_metrics.py
rename to tests/test_metrics.py
diff --git a/test/tracking/test_planar_tracking.py b/tests/tracking/test_planar_tracking.py
similarity index 100%
rename from test/tracking/test_planar_tracking.py
rename to tests/tracking/test_planar_tracking.py
diff --git a/test/utils/test_draw.py b/tests/utils/test_draw.py
similarity index 100%
rename from test/utils/test_draw.py
rename to tests/utils/test_draw.py
diff --git a/test/utils/test_grid.py b/tests/utils/test_grid.py
similarity index 100%
rename from test/utils/test_grid.py
rename to tests/utils/test_grid.py
diff --git a/test/utils/test_helpers.py b/tests/utils/test_helpers.py
similarity index 100%
rename from test/utils/test_helpers.py
rename to tests/utils/test_helpers.py
diff --git a/test/utils/test_image_utils.py b/tests/utils/test_image_utils.py
similarity index 100%
rename from test/utils/test_image_utils.py
rename to tests/utils/test_image_utils.py
diff --git a/test/utils/test_memory.py b/tests/utils/test_memory.py
similarity index 100%
rename from test/utils/test_memory.py
rename to tests/utils/test_memory.py
diff --git a/test/utils/test_one_hot.py b/tests/utils/test_one_hot.py
similarity index 100%
rename from test/utils/test_one_hot.py
rename to tests/utils/test_one_hot.py
diff --git a/test/utils/test_pointcloud_io.py b/tests/utils/test_pointcloud_io.py
similarity index 100%
rename from test/utils/test_pointcloud_io.py
rename to tests/utils/test_pointcloud_io.py
diff --git a/test/utils/test_print.py b/tests/utils/test_print.py
similarity index 100%
rename from test/utils/test_print.py
rename to tests/utils/test_print.py
diff --git a/test/x/__init__.py b/tests/x/__init__.py
similarity index 100%
rename from test/x/__init__.py
rename to tests/x/__init__.py
diff --git a/test/x/test_detection.py b/tests/x/test_detection.py
similarity index 100%
rename from test/x/test_detection.py
rename to tests/x/test_detection.py
diff --git a/test/x/test_image_classification.py b/tests/x/test_image_classification.py
similarity index 100%
rename from test/x/test_image_classification.py
rename to tests/x/test_image_classification.py
diff --git a/test/x/test_segmentation.py b/tests/x/test_segmentation.py
similarity index 100%
rename from test/x/test_segmentation.py
rename to tests/x/test_segmentation.py
diff --git a/test/x/test_x.py b/tests/x/test_x.py
similarity index 100%
rename from test/x/test_x.py
rename to tests/x/test_x.py