Skip to content

Commit

Permalink
create test test_table_FormatValue, strip mtext
Browse files Browse the repository at this point in the history
  • Loading branch information
CEXT-Dan committed Jan 1, 2025
1 parent ac19e63 commit 243cdde
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions unitTests/UnitTestPyActiveX.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,16 @@ def test_iter_documents(self) -> None:
for doc in axApp.Documents:
cnt +=1
self.assertNotEqual(cnt, 0)

def test_table_FormatValue(self):
app = Ax.getApp()
doc = app.ActiveDocument
model = doc.ModelSpace
table = model.AddTable([0,0,0],3,3,2,2)
table.SetTextString(0,0,0,'{\\fMS Sans Serif|b0|i0|c0;Xerox 1980')
self.assertEqual(table.FormatValue(0,0, Ax.constants.acIgnoreMtextFormat),'Xerox 1980')
table.Delete()


def pyactivex() -> None:
try:
Expand Down
Loading

0 comments on commit 243cdde

Please sign in to comment.