TirSystem/git-workflows: CI / validate (push) Skipped
TirSystem/git-workflows: CI / opengrep (push) Skipped
TirSystem/git-workflows: CI / secret-scan (push) Skipped
TirSystem/git-workflows: CI / release-check (push) Skipped
TirSystem/git-workflows: Publish wiki / publish-wiki (push) Skipped
TirSystem/git-workflows: Release / release (push) Skipped
TirSystem/git-workflows: Sync GitHub mirror metadata / sync-metadata (push) Skipped
TirSystem/git-workflows: Publish accepted milestones / publish (push) Skipped
TirSystem/git-workflows: Validate / validate (push) Skipped
TirSystem/git-workflows: CI / secret-scan (pull_request) Successful in 6s
Tests / test (pull_request) Successful in 33s
TirSystem/git-workflows: Validate / validate (pull_request) Successful in 18s
TirSystem/git-workflows: CI / validate (pull_request) Successful in 19s
TirSystem/git-workflows: Release / release (pull_request) Successful in 9s
TirSystem/git-workflows: OpenGrep / opengrep (pull_request) Successful in 56s
TirSystem/git-workflows: CI / release-check (pull_request) Successful in 6s
TirSystem/git-workflows: CI / opengrep (pull_request) Successful in 52s
Task: MIL-002#1
12 lines
414 B
Python
12 lines
414 B
Python
"""Tests of the game window; they need the GUI test environment."""
|
|
|
|
import constants
|
|
|
|
|
|
def test_screen_is_black_and_has_the_game_title(screen) -> None:
|
|
import main # imports turtle, so only after the fixture found a usable Tk
|
|
|
|
configured = main.create_screen()
|
|
assert configured.bgcolor() == constants.SCREEN_COLOR
|
|
assert configured.getcanvas().winfo_toplevel().title() == constants.SCREEN_TITLE
|