Skip to content

Commit

Permalink
fixes #620 by adding test
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Nov 15, 2022
1 parent 906b2a8 commit 3c135bf
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions tests/test_issue620.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
"""
Created on 2022-09-17
@author: th
"""
from tests.basetest import Basetest
from justpy.gridcomponents import AgGrid

class TestIssue620(Basetest):
"""
testing issue 620
https://github.com/justpy-org/justpy/issues/620
"""

def test_issue_620(self):
"""
test a lod loading
"""
lod=[
{
"family_name":"Doe",
"given_name":"John",
}
]
ag_grid=AgGrid()
ag_grid.load_lod(lod)
if self.debug:
print(ag_grid.options.columnDefs)
expected=[{'field': 'family_name'}, {'field': 'given_name'}]
self.assertEqual(expected, ag_grid.options.columnDefs)

0 comments on commit 3c135bf

Please sign in to comment.