@@ -538,7 +538,7 @@ async def test_write_note_with_custom_entity_type(app, test_project):
538538 folder = "guides" ,
539539 content = "# Guide Content\n This is a guide" ,
540540 tags = ["guide" , "documentation" ],
541- entity_type = "guide" ,
541+ note_type = "guide" ,
542542 )
543543
544544 assert result
@@ -574,14 +574,14 @@ async def test_write_note_with_custom_entity_type(app, test_project):
574574
575575@pytest .mark .asyncio
576576async def test_write_note_with_report_entity_type (app , test_project ):
577- """Test creating a note with entity_type ="report"."""
577+ """Test creating a note with note_type ="report"."""
578578 result = await write_note .fn (
579579 project = test_project .name ,
580580 title = "Monthly Report" ,
581581 folder = "reports" ,
582582 content = "# Monthly Report\n This is a monthly report" ,
583583 tags = ["report" , "monthly" ],
584- entity_type = "report" ,
584+ note_type = "report" ,
585585 )
586586
587587 assert result
@@ -599,13 +599,13 @@ async def test_write_note_with_report_entity_type(app, test_project):
599599
600600@pytest .mark .asyncio
601601async def test_write_note_with_config_entity_type (app , test_project ):
602- """Test creating a note with entity_type ="config"."""
602+ """Test creating a note with note_type ="config"."""
603603 result = await write_note .fn (
604604 project = test_project .name ,
605605 title = "System Config" ,
606606 folder = "config" ,
607607 content = "# System Configuration\n This is a config file" ,
608- entity_type = "config" ,
608+ note_type = "config" ,
609609 )
610610
611611 assert result
@@ -659,21 +659,21 @@ async def test_write_note_update_existing_with_different_entity_type(app, test_p
659659 folder = "test" ,
660660 content = "# Initial Content\n This starts as a note" ,
661661 tags = ["test" ],
662- entity_type = "note" ,
662+ note_type = "note" ,
663663 )
664664
665665 assert result1
666666 assert "# Created note" in result1
667667 assert f"project: { test_project .name } " in result1
668668
669- # Update the same note with a different entity_type
669+ # Update the same note with a different note_type
670670 result2 = await write_note .fn (
671671 project = test_project .name ,
672672 title = "Changeable Type" ,
673673 folder = "test" ,
674674 content = "# Updated Content\n This is now a guide" ,
675675 tags = ["guide" ],
676- entity_type = "guide" ,
676+ note_type = "guide" ,
677677 )
678678
679679 assert result2
@@ -976,7 +976,7 @@ async def test_write_note_security_with_all_parameters(self, app, test_project):
976976 folder = "../../../etc/malicious" ,
977977 content = "# Malicious Content\n This should be blocked by security validation." ,
978978 tags = ["malicious" , "test" ],
979- entity_type = "guide" ,
979+ note_type = "guide" ,
980980 )
981981
982982 assert isinstance (result , str )
@@ -1026,7 +1026,7 @@ async def test_write_note_preserves_functionality_with_security(self, app, test_
10261026 Additional content with various formatting.
10271027 """ ).strip (),
10281028 tags = ["security" , "test" , "full-feature" ],
1029- entity_type = "guide" ,
1029+ note_type = "guide" ,
10301030 )
10311031
10321032 # Should succeed normally
0 commit comments