Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/voxkit/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}

Mode = Literal["MFAENGINE", "W2TGENGINE"]
HELP_URL = "http://localhost:3000/help"
HELP_URL = "https://voxkit-web.vercel.app/help"


def startup_routine():
Expand Down
4 changes: 2 additions & 2 deletions src/voxkit/config/app_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class AppConfig:
version: str
description: str
introduction: str
help_url: str = "http://localhost:3000/help"
help_url: str = "https://voxkit-web.vercel.app/help"
release_date: Optional[str] = None
release_notes: Optional[str] = None

Expand Down Expand Up @@ -157,7 +157,7 @@ def from_yaml(cls, config_path: Path) -> "AppConfig":
version=data.get("version", "0.0.0"),
description=data.get("description", ""),
introduction=data.get("introduction", ""),
help_url=data.get("help_url", "http://localhost:3000/help"),
help_url=data.get("help_url", "https://voxkit-web.vercel.app/help"),
release_date=data.get("release_date"),
release_notes=data.get("release_notes"),
)
Expand Down
12 changes: 2 additions & 10 deletions tests/config/test_app_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,7 @@ def test_dataclass_fields(self):
assert config.version == "1.0.0"
assert config.description == "Test description"
assert config.introduction == "Test intro"
assert config.help_url == "http://localhost:3000/help"
assert config.release_date is None
assert config.release_notes is None

def test_dataclass_with_optional_fields(self):
assert config.help_url == "https://voxkit-web.vercel.app/help"
config = AppConfig(
app_name="TestApp",
version="2.0.0",
Expand Down Expand Up @@ -107,11 +103,7 @@ def test_from_yaml_with_defaults(self, tmp_path):
assert config.version == "0.0.0"
assert config.description == ""
assert config.introduction == ""
assert config.help_url == "http://localhost:3000/help"
assert config.release_date is None
assert config.release_notes is None

def test_from_yaml_file_not_found(self, tmp_path):
assert config.help_url == "https://voxkit-web.vercel.app/help"
nonexistent_file = tmp_path / "nonexistent.yaml"

with pytest.raises(FileNotFoundError) as exc_info:
Expand Down
Loading