From 4011ac8511005302de5b9f0373e5df87251886d5 Mon Sep 17 00:00:00 2001 From: Ev-1 <33662061+Ev-1@users.noreply.github.com> Date: Fri, 28 Apr 2023 23:57:48 +0200 Subject: [PATCH] Add pythonpath to pytest in pyproject.toml. Rename navbar range tests --- .../{test_centered_range.py => test_navbar_range.py} | 1 - pyproject.toml | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) rename musicbot/utils/userinteraction/{test_centered_range.py => test_navbar_range.py} (99%) diff --git a/musicbot/utils/userinteraction/test_centered_range.py b/musicbot/utils/userinteraction/test_navbar_range.py similarity index 99% rename from musicbot/utils/userinteraction/test_centered_range.py rename to musicbot/utils/userinteraction/test_navbar_range.py index 6b1256d..5c4d22c 100644 --- a/musicbot/utils/userinteraction/test_centered_range.py +++ b/musicbot/utils/userinteraction/test_navbar_range.py @@ -1,4 +1,3 @@ - from .navbar_range import NavBarRange diff --git a/pyproject.toml b/pyproject.toml index 65b708c..ab151a6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,9 @@ + + +# Required in order to make pytest handle imports correctly. +[tool.pytest.ini_options] +pythonpath = ["."] + [tool.ruff] # Allow lines to be as long as 120 characters. select = ["F", "E", "B", "W", "I001"]