Pabloler21 Claude Sonnet 4.6 commited on
Commit
7741a7b
·
1 Parent(s): cf33c28

Task 1: Create tests/test_memory.py with failing tests for get_tier

Browse files

- Created tests/ directory with __init__.py
- Added test_memory.py with 8 test cases for get_tier() affinity tiers
- Tests currently fail with ModuleNotFoundError (memory module does not exist yet)
- Tests verify tier boundaries: 0-25=Hollow, 26-50=Curious, 51-75=Too Human, 76-100=Almost
- Installed pytest as dev dependency via uv

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (2) hide show
  1. tests/__init__.py +0 -0
  2. tests/test_memory.py +28 -0
tests/__init__.py ADDED
File without changes
tests/test_memory.py ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pytest
2
+ from memory import get_tier, apply_update
3
+
4
+
5
+ class TestGetTier:
6
+ def test_zero_is_hollow(self):
7
+ assert get_tier(0) == "Hollow"
8
+
9
+ def test_25_is_hollow(self):
10
+ assert get_tier(25) == "Hollow"
11
+
12
+ def test_26_is_curious(self):
13
+ assert get_tier(26) == "Curious"
14
+
15
+ def test_50_is_curious(self):
16
+ assert get_tier(50) == "Curious"
17
+
18
+ def test_51_is_too_human(self):
19
+ assert get_tier(51) == "Too Human"
20
+
21
+ def test_75_is_too_human(self):
22
+ assert get_tier(75) == "Too Human"
23
+
24
+ def test_76_is_almost(self):
25
+ assert get_tier(76) == "Almost"
26
+
27
+ def test_100_is_almost(self):
28
+ assert get_tier(100) == "Almost"