diff --git a/.deepsource.toml b/.deepsource.toml
index 24d88d89c2..72e2f02deb 100644
--- a/.deepsource.toml
+++ b/.deepsource.toml
@@ -7,9 +7,9 @@ exclude_patterns = [
   "InvenTree/**/migrations/*.py"
 ]
 test_patterns = [
-  "test_*.py",
-  "**/test.py",
-  "**/tests.py"
+  "test_.*.py",
+  "test.py",
+  "tests.py"
 ]