pyproject.toml (Python 3.13, Selenium only at runtime), src and tests layout, constants.py, Python .gitignore, Doxyfile, README from the framework template with .venv instructions, Dockerfile for headless Chromium, code review RC-014. Closes #8 Closes #9 Closes #10 Closes #11 Closes #12 Closes #13 Task: MIL-002#1 Task: MIL-002#2 Task: MIL-002#3 Task: MIL-002#4 Task: MIL-002#5 Task: MIL-002#6
18 lines
460 B
Python
18 lines
460 B
Python
"""@file test_constants.py
|
|
@brief Smoke test: the assignment's timings are the ones in constants.py.
|
|
"""
|
|
|
|
from cookie_clicker_bot import constants
|
|
|
|
|
|
def test_run_lasts_five_minutes() -> None:
|
|
assert constants.RUN_DURATION_SECONDS == 5 * 60
|
|
|
|
|
|
def test_upgrades_are_checked_every_five_seconds() -> None:
|
|
assert constants.UPGRADE_CHECK_INTERVAL_SECONDS == 5
|
|
|
|
|
|
def test_game_address_is_https() -> None:
|
|
assert constants.GAME_URL.startswith("https://")
|