Skip to content

Commit 44c9ab9

Browse files
Merge branch 'main' of https://github.com/facultyai/dash-bootstrap-components into carousel
2 parents ae72965 + 74bc9ba commit 44c9ab9

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

docs/components_page/components/__tests__/test_snippets.py

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,16 @@ def test_r_snippets(dash_thread_server, dashr_server, config):
7171
)
7272
python_r_compare.append((py_snippet, r_snippet, f"{name}_{i}"))
7373

74-
assert_layouts_equal(
75-
python_r_compare,
76-
dashr_server,
77-
R_WRAPPER,
78-
R_PORT,
79-
dash_thread_server,
80-
env,
81-
8050,
82-
)
74+
if python_r_compare:
75+
assert_layouts_equal(
76+
python_r_compare,
77+
dashr_server,
78+
R_WRAPPER,
79+
R_PORT,
80+
dash_thread_server,
81+
env,
82+
8050,
83+
)
8384

8485

8586
@pytest.mark.parametrize("config", PARAMS)
@@ -103,15 +104,16 @@ def test_jl_snippets(dash_thread_server, dashjl_server, config):
103104
jl_snippet = rename_variable(jl_snippet_path, i, name)
104105
python_jl_compare.append((py_snippet, jl_snippet, f"{name}_{i}"))
105106

106-
assert_layouts_equal(
107-
python_jl_compare,
108-
dashjl_server,
109-
JL_WRAPPER,
110-
JL_PORT,
111-
dash_thread_server,
112-
env,
113-
8052,
114-
)
107+
if python_jl_compare:
108+
assert_layouts_equal(
109+
python_jl_compare,
110+
dashjl_server,
111+
JL_WRAPPER,
112+
JL_PORT,
113+
dash_thread_server,
114+
env,
115+
8052,
116+
)
115117

116118

117119
def assert_layouts_equal(

0 commit comments

Comments
 (0)