refactor: address code review feedback - clean up test imports and add MAIL_PORT validation

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-12 00:18:08 +00:00
parent cfe000f030
commit ee96104f66
2 changed files with 5 additions and 3 deletions
+1 -2
View File
@@ -3,6 +3,7 @@ import pytest
import os
import re
import importlib
import musicround.config
class TestSecurityConfiguration:
@@ -17,7 +18,6 @@ class TestSecurityConfiguration:
try:
# Force module reload to re-evaluate class-level checks
import musicround.config
with pytest.raises(ValueError, match="SECRET_KEY environment variable must be set"):
importlib.reload(musicround.config)
finally:
@@ -36,7 +36,6 @@ class TestSecurityConfiguration:
try:
# Force module reload to re-evaluate class-level checks
import musicround.config
with pytest.raises(ValueError, match="AUTOMATION_TOKEN environment variable must be set"):
importlib.reload(musicround.config)
finally: