SteamCommunityKit ships with both unit tests and a live smoke script.
python -m pytest -qpython examples/smoke_test.py --api-key YOUR_WEB_API_KEY --public-onlyOr with a local api.json:
python examples/smoke_test.py --api-json path\\to\\api.json --public-onlypython examples/smoke_test.py --public-onlyThis exercises public community features such as:
- vanity resolution
- community profile XML
- market search, pricing, listings, and snapshots
- public group reads
python examples/smoke_test.py --username YOUR_USERNAME --password YOUR_PASSWORD --community-onlyThis exercises account-backed features such as:
- profile bundle reads
- privacy reads
- trade offer URL parsing
- Web API key page state
- group membership state
- session roundtrips
- inventory helpers
python examples/smoke_test.py --username YOUR_USERNAME --password YOUR_PASSWORD --community-only --write-checksOptional flags already supported by the smoke script include:
--steam-guard-code--rotate-trade-url--set-persona-name--set-custom-url--set-real-name--set-summary--avatar-image--editable-group-url
- Some checks are expected to be blocked by Steam account state, such as limited-account restrictions.
- That is still a valid test if the library reports the failure clearly.
- Do not use your main account for destructive write checks unless you intend to change real account state.