Skip to content

Commit dbeccb8

Browse files
committed
Tests should use format_ and snake case
1 parent bb49ed2 commit dbeccb8

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

plugins/ui/test/deephaven/ui/test_ui_table.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -277,16 +277,16 @@ def test_databar_full_options(self):
277277
self.expect_render(
278278
t,
279279
{
280-
"format": {
280+
"format_": {
281281
"cols": "X",
282282
"mode": {
283283
"type": "databar",
284-
"valueColumn": "Y",
284+
"value_column": "Y",
285285
"min": 0,
286286
"max": 100,
287287
"axis": "middle",
288288
"direction": "LTR",
289-
"valuePlacement": "overlap",
289+
"value_placement": "overlap",
290290
"color": "blue",
291291
"opacity": 0.7,
292292
"markers": [{"value": 50, "color": "red"}],
@@ -314,7 +314,7 @@ def test_databar_multiple_columns(self):
314314
self.expect_render(
315315
t,
316316
{
317-
"format": [
317+
"format_": [
318318
{
319319
"cols": ["X", "Y"],
320320
"mode": {
@@ -343,9 +343,9 @@ def test_databar_conditional(self):
343343
self.expect_render(
344344
t,
345345
{
346-
"format": {
346+
"format_": {
347347
"cols": "X",
348-
"if": "X > 50",
348+
"if_": "X > 50",
349349
"mode": {
350350
"type": "databar",
351351
"color": "positive",
@@ -370,10 +370,10 @@ def test_databar_mixed_formatting(self):
370370
self.expect_render(
371371
t,
372372
{
373-
"format": [
374-
{"cols": "X", "backgroundColor": "accent-100"},
373+
"format_": [
374+
{"cols": "X", "background_color": "accent-100"},
375375
{"cols": "Y", "mode": {"type": "databar", "color": "blue"}},
376-
{"cols": "X", "if": "X > 50", "color": "positive"},
376+
{"cols": "X", "if_": "X > 50", "color": "positive"},
377377
],
378378
},
379379
)

0 commit comments

Comments
 (0)