From af3ec39db5fb403e1685184a9244590f2d5859bd Mon Sep 17 00:00:00 2001 From: Alex Morega Date: Wed, 23 Oct 2024 15:34:35 +0300 Subject: [PATCH] Only run tests from the `tests` directory This fixes the nightly Wagtail tests, which clone the Wagtail repo in our source tree, and pytest mistakenly tries to run Wagtail's tests. --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 377ddc4..69b3c3c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,3 +67,6 @@ lint.select = [ django_find_project = false pythonpath = "." DJANGO_SETTINGS_MODULE = "tests.settings" +testpaths = [ + "tests", +]