99
1010
1111def test_todo_duration_without_dtstart ():
12- """Test that Todo.duration works when DURATION property is set but DTSTART is missing."""
12+ """Test that Todo.duration works when ` DURATION` property is set but ` DTSTART` is missing."""
1313 # This is the exact test case from issue #867
1414 my_task = Todo .from_ical ("""BEGIN:VTODO
1515UID:taskwithoutdtstart
@@ -24,7 +24,7 @@ def test_todo_duration_without_dtstart():
2424
2525
2626def test_todo_duration_calculated_from_start_and_due ():
27- """Test that Todo.duration still works for calculated duration from DTSTART and DUE."""
27+ """Test that Todo.duration still works for calculated duration from ` DTSTART` and ` DUE` ."""
2828 todo = Todo ()
2929 todo .add ("UID" , "test-calculated" )
3030 todo .start = datetime (2026 , 3 , 19 , 12 , 0 )
@@ -35,7 +35,7 @@ def test_todo_duration_calculated_from_start_and_due():
3535
3636
3737def test_todo_duration_prefers_duration_property ():
38- """Test that explicit DURATION property takes precedence over calculated duration."""
38+ """Test that explicit ` DURATION` property takes precedence over calculated duration."""
3939 todo = Todo ()
4040 todo .add ("UID" , "test-precedence" )
4141 todo .start = datetime (2026 , 3 , 19 , 12 , 0 )
@@ -47,7 +47,7 @@ def test_todo_duration_prefers_duration_property():
4747
4848
4949def test_todo_duration_with_dtstart_and_duration ():
50- """Test Todo with DTSTART and DURATION (valid per RFC 5545)."""
50+ """Test Todo with ` DTSTART` and ` DURATION` (valid per RFC 5545)."""
5151 todo = Todo ()
5252 todo .add ("UID" , "test-start-duration" )
5353 todo .start = datetime (2026 , 3 , 19 , 12 , 0 )
@@ -108,7 +108,7 @@ def test_todo_duration_maintains_backward_compatibility():
108108
109109
110110def test_todo_duration_edge_case_only_dtstart ():
111- """Test Todo with only DTSTART (no DUE or DURATION)."""
111+ """Test Todo with only ` DTSTART` (no ` DUE` or ` DURATION` )."""
112112 todo = Todo ()
113113 todo .add ("UID" , "test-only-start" )
114114 todo .start = datetime (2026 , 3 , 19 , 12 , 0 )
@@ -157,7 +157,7 @@ def test_todo_duration_preserves_property_access():
157157
158158# Event tests - same fix applies for consistency
159159def test_event_duration_prefers_duration_property ():
160- """Test that Event.duration also prefers DURATION property over calculated duration."""
160+ """Test that Event.duration also prefers ` DURATION` property over calculated duration."""
161161 event = Event ()
162162 event .add ("UID" , "test-event-duration" )
163163 event .start = datetime (2026 , 3 , 19 , 12 , 0 )
@@ -169,7 +169,7 @@ def test_event_duration_prefers_duration_property():
169169
170170
171171def test_event_duration_calculated_fallback ():
172- """Test that Event.duration falls back to calculated duration when no DURATION property."""
172+ """Test that Event.duration falls back to calculated duration when no ` DURATION` property."""
173173 event = Event ()
174174 event .add ("UID" , "test-event-calculated" )
175175 event .start = datetime (2026 , 3 , 19 , 12 , 0 )
0 commit comments