Skip to content

Commit

Permalink
actually checking base reqs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisclark committed Jul 3, 2024
1 parent fd94d1c commit 3266fdd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion explorer/tests/settings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from test_project.settings import * # noqa

EXPLORER_ENABLE_ANONYMOUS_STATS = False
EXPLORER_TASKS_ENABLED = False # set to true to test async tasks
EXPLORER_TASKS_ENABLED = True # set to true to test async tasks
EXPLORER_AI_API_KEY = None # set to any value to enable assistant
CELERY_BROKER_URL = "redis://localhost:6379/0"
CELERY_TASK_ALWAYS_EAGER = True
Expand Down
4 changes: 4 additions & 0 deletions explorer/tests/settings_base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from explorer.tests.settings import * # noqa

EXPLORER_TASKS_ENABLED = False
EXPLORER_USER_UPLOADS_ENABLED = False
2 changes: 1 addition & 1 deletion requirements/extra/snapshots.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
boto3>=1.3
boto3>=1.30.0
celery>=4.0
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ skip_missing_interpreters=True
[testenv]
allowlist_externals = coverage
deps =
base-reqs: -r requirements/dev.txt
base-reqs: -r requirements/base.txt
dj32: django>=3.2,<4.0
dj42: django>=4.2,<5.0
dj50: django>=5.0,<5.1
djmain: https://github.com/django/django/archive/main.tar.gz
dev: -r requirements/dev.txt
commands =
{envpython} --version
{env:COMMAND:coverage} run manage.py test --settings=explorer.tests.settings --noinput
base-reqs: coverage run manage.py test --settings=explorer.settings_base --noinput
dev: coverage run manage.py test --settings=explorer.settings --noinput
ignore_outcome =
djmain: True
ignore_errors =
Expand Down

0 comments on commit 3266fdd

Please sign in to comment.