Skip to content
Open
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
8 changes: 8 additions & 0 deletions env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Example environment variables for kalshi-starter-code-python

# API credentials for Kalshi
KALSHI_API_KEY=your_api_key_here
KALSHI_API_SECRET=your_api_secret_here

# Environment: "demo" or "prod"
KALSHI_ENV=demo
12 changes: 12 additions & 0 deletions tests/test_env_flag_sanity.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import os


def test_kalshi_env_flag_present() -> None:
"""
Sanity test to verify that KALSHI_ENV has a reasonable value
when running tests in a configured environment.
"""
value = os.getenv("KALSHI_ENV", "")
# The variable may be empty in some local setups, so this test is
# intentionally lenient and only checks that we can read it.
assert value is not None