Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
Friskes committed Apr 30, 2024
1 parent 23d4c49 commit f6bf4cf
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/celery_starter/management/commands/runcelery.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from django.utils import autoreload
from dotenv import find_dotenv, load_dotenv

from celery_starter import _localization as L # noqa: N812
from ... import _localization as L # noqa: TID252, N812

if TYPE_CHECKING:
from argparse import _ActionsContainer
Expand Down
11 changes: 11 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import os

from django.conf import settings


def pytest_configure() -> None:
base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

settings.configure(
BASE_DIR=base_dir,
)
8 changes: 8 additions & 0 deletions tests/management/commands/test_runcelery.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from src.celery_starter.management.commands.runcelery import Command


# python -m pip install .
# pytest -s ./tests
def test_command() -> None:
""""""
cmd = Command()

0 comments on commit f6bf4cf

Please sign in to comment.