Skip to content

Commit 89f34ec

Browse files
committed
fix: add tests
1 parent e85a952 commit 89f34ec

File tree

10 files changed

+1407
-13
lines changed

10 files changed

+1407
-13
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "aptabase"
3-
version = "0.0.3"
3+
version = "0.0.4"
44
description = "Python SDK for Aptabase analytics"
55
readme = "README.md"
66
requires-python = ">=3.11"

samples/textual-counter/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ readme = "README.md"
99
requires-python = ">=3.11"
1010
dependencies = [
1111
"textual>=6.7.1",
12-
"aptabase>=0.0.2",
12+
"aptabase>=0.0.3",
1313
]
1414
license = {text = "MIT"}
1515
keywords = ["textual", "tui", "analytics", "aptabase", "counter"]

samples/textual-counter/uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/textual-dashboard/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ readme = "README.md"
99
requires-python = ">=3.11"
1010
dependencies = [
1111
"textual>=6.7.1",
12-
"aptabase>=0.0.2",
12+
"aptabase>=0.0.3",
1313
]
1414
license = {text = "MIT"}
1515
keywords = ["textual", "tui", "analytics", "aptabase", "dashboard"]

samples/textual-dashboard/uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/aptabase/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(
5151
if not app_key or not isinstance(app_key, str):
5252
raise ConfigurationError("App key is required and must be a string")
5353

54-
if not app_key.startswith(("A-EU-", "A-US-")):
54+
if not app_key.startswith(("A-EU-", "A-US-", "A-SH-")):
5555
raise ConfigurationError(
5656
"Invalid app key format. Expected format: A-{REGION}-{ID}"
5757
)

0 commit comments

Comments
 (0)