Skip to content

Commit 6fae618

Browse files
committed
feat: add backend config module and update environment variables with secure defaults
1 parent 121d3d7 commit 6fae618

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

backend/app/tests/scripts/test_backend_pre_start.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ def test_init_successful_connection() -> None:
2424
except Exception:
2525
connection_successful = False
2626

27-
assert (
28-
connection_successful
29-
), "The database connection should be successful and not raise an exception."
27+
assert connection_successful, (
28+
"The database connection should be successful and not raise an exception."
29+
)
3030

31-
assert session_mock.exec.called_once_with(
32-
select(1)
33-
), "The session should execute a select statement once."
31+
assert session_mock.exec.called_once_with(select(1)), (
32+
"The session should execute a select statement once."
33+
)

backend/app/tests/scripts/test_test_pre_start.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ def test_init_successful_connection() -> None:
2424
except Exception:
2525
connection_successful = False
2626

27-
assert (
28-
connection_successful
29-
), "The database connection should be successful and not raise an exception."
27+
assert connection_successful, (
28+
"The database connection should be successful and not raise an exception."
29+
)
3030

31-
assert session_mock.exec.called_once_with(
32-
select(1)
33-
), "The session should execute a select statement once."
31+
assert session_mock.exec.called_once_with(select(1)), (
32+
"The session should execute a select statement once."
33+
)

0 commit comments

Comments
 (0)