Skip to content

Commit 7dcfda1

Browse files
committed
Fix tiebreak test to avoid issue, and add tests
1 parent 32d7a84 commit 7dcfda1

File tree

7 files changed

+219
-125
lines changed

7 files changed

+219
-125
lines changed

Pipfile

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ whitenoise = "*"
4141
[dev-packages]
4242
black = "*"
4343
isort = "*"
44+
pytest = "~=8.0.0"
4445

4546
[requires]
4647
python_version = "3.10"

Pipfile.lock

+102-30
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

uwcsvote/settings/dev.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@
1515

1616
DATABASES = {
1717
"default": {
18-
"ENGINE": "django.db.backends.postgresql_psycopg2",
19-
"NAME": "uwcs_vote",
20-
"USER": "uwcs_vote",
21-
"PASSWORD": "password",
22-
"HOST": "localhost",
23-
"PORT": "5432",
18+
"ENGINE": "django.db.backends.sqlite3",
19+
"NAME": os.path.join(BASE_DIR, "db.sqlite3"),
2420
}
2521
}
2622

uwcsvote/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ def suppress(cls):
66
cls.val = False
77

88
def __bool__(self):
9-
return self.val
9+
return self.val and False

0 commit comments

Comments
 (0)