Skip to content

Commit 745e8bf

Browse files
committed
add foss as telementry source, disable analytics for tests
1 parent ef7adb7 commit 745e8bf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ test-postgres: test-unit-postgres test-int-postgres
3737

3838
# Run unit tests against SQLite
3939
test-unit-sqlite:
40-
uv run pytest -p pytest_mock -v --no-cov tests
40+
BASIC_MEMORY_ENV=test uv run pytest -p pytest_mock -v --no-cov tests
4141

4242
# Run unit tests against Postgres
4343
test-unit-postgres:
44-
BASIC_MEMORY_TEST_POSTGRES=1 uv run pytest -p pytest_mock -v --no-cov tests
44+
BASIC_MEMORY_ENV=test BASIC_MEMORY_TEST_POSTGRES=1 uv run pytest -p pytest_mock -v --no-cov tests
4545

4646
# Run integration tests against SQLite
4747
test-int-sqlite:

src/basic_memory/telemetry.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def _get_client() -> OpenPanel:
108108
"os": platform.system().lower(),
109109
"arch": platform.machine(),
110110
"install_id": get_install_id(),
111+
"source": "foss"
111112
}
112113
)
113114
_initialized = True

0 commit comments

Comments
 (0)