1+ """
2+ Test fakes for Player data-state scenarios.
3+
4+ Three-term vocabulary:
5+ existing — player is present in the database
6+ nonexistent — player is absent, valid shape for creation (POST scenarios)
7+ unknown — valid ID format, absent from database (404-by-lookup scenarios)
8+ """
9+
10+
111class Player :
212 """
3- Test stub representing a Player.
13+ Test fake representing a Player.
414 """
515
616 def __init__ (
@@ -30,9 +40,9 @@ def __init__(
3040 self .starting11 = starting11
3141
3242
33- def existing_player ():
43+ def existing_player () -> Player :
3444 """
35- Creates a test stub for an existing Player.
45+ Creates a test fake for an existing Player.
3646 """
3747 return Player (
3848 id = "01772c59-43f0-5d85-b913-c78e4e281452" ,
@@ -49,9 +59,9 @@ def existing_player():
4959 )
5060
5161
52- def nonexistent_player ():
62+ def nonexistent_player () -> Player :
5363 """
54- Creates a test stub for a nonexistent (new) Player.
64+ Creates a test fake for a nonexistent (new) Player.
5565 No id is provided; the server generates a UUID on creation.
5666 """
5767 return Player (
@@ -67,9 +77,9 @@ def nonexistent_player():
6777 )
6878
6979
70- def unknown_player ():
80+ def unknown_player () -> Player :
7181 """
72- Creates a test stub for an unknown Player (valid UUID format, not in database).
82+ Creates a test fake for an unknown Player (valid UUID format, not in database).
7383 """
7484 return Player (
7585 id = "00000000-0000-0000-0000-000000000000" ,
0 commit comments