Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
2 nully tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-André Rivet committed Apr 11, 2019
1 parent 0602a15 commit d48e81d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tests/test_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def test_initial_state(self):

assert_clean_console(self)

def test_nully_child(self):
def test_array_of_nully_child(self):
app = Dash(__name__)
app.layout = html.Div(id='nully-wrapper', children=[0])

Expand All @@ -488,6 +488,19 @@ def test_nully_child(self):

assert_clean_console(self)

def test_of_nully_child(self):
app = Dash(__name__)
app.layout = html.Div(id='nully-wrapper', children=0)

self.startServer(app)

self.wait_for_element_by_css_selector('#nully-wrapper')
wrapper = self.driver.find_element_by_id('nully-wrapper')

self.assertEqual(wrapper.get_attribute('innerHTML'), '0')

assert_clean_console(self)

def test_simple_callback(self):
app = Dash(__name__)
app.layout = html.Div([
Expand Down

0 comments on commit d48e81d

Please sign in to comment.