Skip to content

Commit 829fe7c

Browse files
committed
fix: Apply black formatting and fix flake8 warnings in test_primitives.py
- Remove unnecessary f-string markers on static strings - Apply black formatting - All CI checks now pass (flake8, black, pytest)
1 parent 4b0fbc8 commit 829fe7c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

test_primitives.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_primitives():
2121
# Test 1: LOVE primitive
2222
print("\n1. LOVE PRIMITIVE")
2323
love_result = engine.analyze_text("love compassion kindness care")
24-
print(f" Text: 'love compassion kindness care'")
24+
print(" Text: 'love compassion kindness care'")
2525
print(f" Coordinates: {love_result.coordinates}")
2626
print(f" LOVE value: {love_result.coordinates.love:.3f}")
2727
assert love_result.coordinates.love > 0.8, "LOVE dimension should be dominant"
@@ -30,16 +30,18 @@ def test_primitives():
3030
# Test 2: JUSTICE primitive
3131
print("\n2. JUSTICE PRIMITIVE")
3232
justice_result = engine.analyze_text("justice truth fairness law order")
33-
print(f" Text: 'justice truth fairness law order'")
33+
print(" Text: 'justice truth fairness law order'")
3434
print(f" Coordinates: {justice_result.coordinates}")
3535
print(f" JUSTICE value: {justice_result.coordinates.justice:.3f}")
36-
assert justice_result.coordinates.justice > 0.8, "JUSTICE dimension should be dominant"
36+
assert (
37+
justice_result.coordinates.justice > 0.8
38+
), "JUSTICE dimension should be dominant"
3739
print(" ✓ JUSTICE primitive working correctly")
3840

3941
# Test 3: POWER primitive
4042
print("\n3. POWER PRIMITIVE")
4143
power_result = engine.analyze_text("power strength action control execute")
42-
print(f" Text: 'power strength action control execute'")
44+
print(" Text: 'power strength action control execute'")
4345
print(f" Coordinates: {power_result.coordinates}")
4446
print(f" POWER value: {power_result.coordinates.power:.3f}")
4547
assert power_result.coordinates.power > 0.8, "POWER dimension should be dominant"
@@ -48,7 +50,7 @@ def test_primitives():
4850
# Test 4: WISDOM primitive
4951
print("\n4. WISDOM PRIMITIVE")
5052
wisdom_result = engine.analyze_text("wisdom knowledge understanding analysis")
51-
print(f" Text: 'wisdom knowledge understanding analysis'")
53+
print(" Text: 'wisdom knowledge understanding analysis'")
5254
print(f" Coordinates: {wisdom_result.coordinates}")
5355
print(f" WISDOM value: {wisdom_result.coordinates.wisdom:.3f}")
5456
assert wisdom_result.coordinates.wisdom > 0.8, "WISDOM dimension should be dominant"
@@ -57,7 +59,7 @@ def test_primitives():
5759
# Test 5: Mixed coordinates
5860
print("\n5. MIXED COORDINATES")
5961
mixed_result = engine.analyze_text("love justice power wisdom")
60-
print(f" Text: 'love justice power wisdom'")
62+
print(" Text: 'love justice power wisdom'")
6163
print(f" Coordinates: {mixed_result.coordinates}")
6264
print(f" L={mixed_result.coordinates.love:.3f}, ", end="")
6365
print(f"J={mixed_result.coordinates.justice:.3f}, ", end="")

0 commit comments

Comments
 (0)