-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
906b2a8
commit 3c135bf
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
|