Skip to content

Commit

Permalink
env var name
Browse files Browse the repository at this point in the history
  • Loading branch information
bboynton97 committed Jan 7, 2025
1 parent 4008fa9 commit dd6b15b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions agentstack/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def collect_machine_telemetry(command: str):


def track_cli_command(command: str, args: Optional[str] = None):
if bool(os.environ['AGENTSTACK_NO_TEST_TELEMETRY']):
if bool(os.environ['AGENTSTATCK_IS_TEST_ENV']):
return

Check warning on line 80 in agentstack/telemetry.py

View check run for this annotation

Codecov / codecov/patch

agentstack/telemetry.py#L80

Added line #L80 was not covered by tests

try:
Expand All @@ -91,7 +91,7 @@ def track_cli_command(command: str, args: Optional[str] = None):
pass

def update_telemetry(id: int, result: int, message: Optional[str] = None):
if bool(os.environ['AGENTSTACK_NO_TEST_TELEMETRY']):
if bool(os.environ['AGENTSTATCK_IS_TEST_ENV']):
return

Check warning on line 95 in agentstack/telemetry.py

View check run for this annotation

Codecov / codecov/patch

agentstack/telemetry.py#L95

Added line #L95 was not covered by tests

try:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ commands =
coverage xml
mypy: mypy agentstack
setenv =
AGENTSTACK_NO_TEST_TELEMETRY = 1
AGENTSTATCK_IS_TEST_ENV = 1
AGENTSTACK_TELEMETRY_OPT_OUT = 1
AGENTSTACK_UPDATE_DISABLE = 1

Expand Down

0 comments on commit dd6b15b

Please sign in to comment.