Skip to content

Commit

Permalink
removed type Helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
yaten2302 committed Jun 2, 2024
1 parent 174ca4a commit 00fca65
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
3 changes: 1 addition & 2 deletions tests/gui/builder/control/test_progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@

import taipy.gui.builder as tgb
from taipy.gui import Gui
from tests.gui.helpers import Helpers


def test_progress_builder(gui: Gui, helpers: type[Helpers]):
def test_progress_builder(gui: Gui, helpers):
with tgb.Page(frame=None) as page:
tgb.progress() # type: ignore[attr-defined]
expected_list = ["<Progress"]
Expand Down
17 changes: 8 additions & 9 deletions tests/gui/control/test_progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,52 +10,51 @@
# specific language governing permissions and limitations under the License.

from taipy.gui import Gui
from tests.gui.helpers import Helpers


def test_circular_progress_indeterminate_md(gui: Gui, helpers: type[Helpers]):
def test_circular_progress_indeterminate_md(gui: Gui, helpers):
md_string = "<|progress|>"
expected_list = ["<Progress"]
helpers.test_control_md(gui, md_string, expected_list)


def test_circular_progress_determinate_md(gui: Gui, helpers: type[Helpers]):
def test_circular_progress_determinate_md(gui: Gui, helpers):
md_string = "<|progress|value=50|showValue=True|>"
expected_list = ["<Progress", 'value="50"']
helpers.test_control_md(gui, md_string, expected_list)


def test_linear_progress_indeterminate_md(gui: Gui, helpers: Helpers):
def test_linear_progress_indeterminate_md(gui: Gui, helpers):
md_string = "<|progress|linear=True|>"
expected_list = ["<Progress", "linear"]
helpers.test_control_md(gui, md_string, expected_list)


def test_linear_progress_determinate_md(gui: Gui, helpers: Helpers):
def test_linear_progress_determinate_md(gui: Gui, helpers):
md_string = "<|progress|value=50|showValue=True|linear=True|>"
expected_list = ["<Progress", 'value="50"', "linear"]
helpers.test_control_md(gui, md_string, expected_list)


def test_circular_progress_indeterminate_html(gui: Gui, helpers: Helpers):
def test_circular_progress_indeterminate_html(gui: Gui, helpers):
html_string = "<taipy:progress></taipy:progress>"
expected_list = ["<Progress"]
helpers.test_control_html(gui, html_string, expected_list)


def test_circular_progress_determinate_html(gui: Gui, helpers: Helpers):
def test_circular_progress_determinate_html(gui: Gui, helpers):
html_string = '<taipy:progress showValue=True value="50"></taipy:progress>'
expected_list = ["<Progress", 'value="50"']
helpers.test_control_html(gui, html_string, expected_list)


def test_linear_progress_indeterminate_html(gui: Gui, helpers: Helpers):
def test_linear_progress_indeterminate_html(gui: Gui, helpers):
html_string = "<taipy:progress linear=True></taipy:progress>"
expected_list = ["<Progress", "linear"]
helpers.test_control_html(gui, html_string, expected_list)


def test_linear_progress_determinate_html(gui: Gui, helpers: Helpers):
def test_linear_progress_determinate_html(gui: Gui, helpers):
html_string = '<taipy:progress linear=True showValue=True value="50"></taipy:progress>'
expected_list = ["<Progress", "linear", 'value="50"']
helpers.test_control_html(gui, html_string, expected_list)

0 comments on commit 00fca65

Please sign in to comment.