diff --git a/env.sample b/env.sample new file mode 100644 index 0000000..bfe0669 --- /dev/null +++ b/env.sample @@ -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 diff --git a/tests/test_env_flag_sanity.py b/tests/test_env_flag_sanity.py new file mode 100644 index 0000000..007f44c --- /dev/null +++ b/tests/test_env_flag_sanity.py @@ -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