Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
VirginiaDooley committed Sep 17, 2024
1 parent 2ed289e commit 0071f77
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 37 deletions.
8 changes: 0 additions & 8 deletions electionleaflets/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,3 @@ def setup_sentry(environment=None):
]
except ImportError:
pass


# importing test settings file if necessary (TODO chould be done better)
if len(sys.argv) > 1 and sys.argv[1] in ["test", "harvest"]:
try:
from .testing import * # noqa: F401,F403
except ImportError:
pass
8 changes: 0 additions & 8 deletions electionleaflets/settings/base_lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,3 @@
USE_X_FORWARDED_HOST = True

setup_sentry()

# importing test settings file if necessary (TODO chould be done better)
if len(sys.argv) > 1 and sys.argv[1] in ["test", "harvest"]:
try:
from .testing import * # noqa: F401,F403
except ImportError:
pass

19 changes: 0 additions & 19 deletions electionleaflets/settings/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,4 @@

MEDIA_ROOT = root("test_media",) # noqa: F405

if os.environ.get("RUNNER") == "travis":
DATABASES = {
"default": {
"ENGINE": "django.contrib.gis.db.backends.postgis",
"NAME": "travis_ci_test",
"USER": "postgres",
}
}
elif os.environ.get("RUNNER") == "circleci":
DATABASES = {
"default": {
"ENGINE": "django.contrib.gis.db.backends.postgis",
"NAME": "electionleaflets_test",
"USER": "postgres",
"HOST": "127.0.0.1",
"PORT": "5432",
}
}

INSTALLED_APPS.append("aloe_django") # noqa: F405
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@ requires = [
"setuptools_scm >= 2.0.0, <3"
]
build-backend = "setuptools.build_meta"

DJANGO_SETTINGS_MODULE = "electionleaflets.settings.base"

0 comments on commit 0071f77

Please sign in to comment.