Skip to content

Commit

Permalink
Add first test
Browse files Browse the repository at this point in the history
  • Loading branch information
nanokm committed Dec 21, 2024
1 parent 701741f commit bc2884c
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 26 deletions.
6 changes: 3 additions & 3 deletions apps/org/tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from django.test import TestCase

# Create your tests here.
class TestSomething:
def test_pytest(self):
assert True is True
7 changes: 0 additions & 7 deletions gd_backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,6 @@
"allauth.account",
"allauth.socialaccount.providers.google",
]
THIRD_PARTY_DEV_APPS = [
"zeal",
]
PROJECT_APPS = ["apps.user", "apps.map", "apps.shared", "apps.org", "apps.offer", "apps.prices", "apps.geocoding"]

INSTALLED_APPS = (
Expand All @@ -158,7 +155,6 @@
"django.contrib.staticfiles",
"django.contrib.gis",
]
+ THIRD_PARTY_DEV_APPS
+ THIRD_PARTY_APPS
+ PROJECT_APPS
)
Expand All @@ -175,9 +171,6 @@
"allauth.account.middleware.AccountMiddleware",
]

if DEBUG:
MIDDLEWARE.append("zeal.middleware.zeal_middleware")

ROOT_URLCONF = "gd_backend.urls"

TEMPLATES = [
Expand Down
37 changes: 22 additions & 15 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ markdown = "^3.7"
pylint = "^3.3.2"
isort = "^5.13.2"
pre-commit = "^4.0.1"
django-zeal = "^2.0.2"
pytest-django = "^4.9.0"


[tool.poetry.group.black.dependencies]
Expand Down
3 changes: 3 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[pytest]
DJANGO_SETTINGS_MODULE = gd_backend.settings
python_files = tests.py test_*.py *_tests.py

0 comments on commit bc2884c

Please sign in to comment.