Skip to content

Commit 8e7d365

Browse files
committed
move on_focus tests to separate files
1 parent 3b6a2ed commit 8e7d365

File tree

4 files changed

+51
-32
lines changed

4 files changed

+51
-32
lines changed

components/dash-table/tests/selenium/test_sizing.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
import dash
2-
import pytest
32

43
from utils import (
5-
basic_modes,
64
get_props,
7-
generate_mock_data,
8-
generate_markdown_mock_data,
9-
generate_mixed_markdown_data,
105
)
116

127
from dash.dependencies import Input, Output
@@ -324,30 +319,3 @@ def on_focus(test, props, data_fn):
324319
cells_are_same_width(t1, t2)
325320

326321
assert test.get_log_errors() == []
327-
328-
329-
@pytest.mark.parametrize("props", basic_modes)
330-
@pytest.mark.parametrize(
331-
"data_fn",
332-
[generate_mock_data],
333-
)
334-
def test_szng004_on_focus(test, props, data_fn):
335-
on_focus(test, props, data_fn)
336-
337-
338-
@pytest.mark.parametrize("props", basic_modes)
339-
@pytest.mark.parametrize(
340-
"data_fn",
341-
[generate_markdown_mock_data],
342-
)
343-
def test_szng005_on_focus(test, props, data_fn):
344-
on_focus(test, props, data_fn)
345-
346-
347-
@pytest.mark.parametrize("props", basic_modes)
348-
@pytest.mark.parametrize(
349-
"data_fn",
350-
[generate_mixed_markdown_data],
351-
)
352-
def test_szng006_on_focus(test, props, data_fn):
353-
on_focus(test, props, data_fn)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import pytest
2+
3+
from test_sizing import on_focus
4+
5+
from utils import (
6+
basic_modes,
7+
generate_mock_data,
8+
)
9+
10+
11+
@pytest.mark.parametrize("props", basic_modes)
12+
@pytest.mark.parametrize(
13+
"data_fn",
14+
[generate_mock_data],
15+
)
16+
def test_szng004_on_focus(test, props, data_fn):
17+
on_focus(test, props, data_fn)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import pytest
2+
3+
from test_sizing import on_focus
4+
5+
from utils import (
6+
basic_modes,
7+
generate_markdown_mock_data,
8+
)
9+
10+
11+
@pytest.mark.parametrize("props", basic_modes)
12+
@pytest.mark.parametrize(
13+
"data_fn",
14+
[generate_markdown_mock_data],
15+
)
16+
def test_szng005_on_focus(test, props, data_fn):
17+
on_focus(test, props, data_fn)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import pytest
2+
3+
from test_sizing import on_focus
4+
5+
from utils import (
6+
basic_modes,
7+
generate_mixed_markdown_data,
8+
)
9+
10+
11+
@pytest.mark.parametrize("props", basic_modes)
12+
@pytest.mark.parametrize(
13+
"data_fn",
14+
[generate_mixed_markdown_data],
15+
)
16+
def test_szng006_on_focus(test, props, data_fn):
17+
on_focus(test, props, data_fn)

0 commit comments

Comments
 (0)