Skip to content

Commit

Permalink
Fix unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
daya0576 committed Oct 10, 2024
1 parent d8b8554 commit 94b7f70
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_main_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
# https://github.com/zauberzeug/nicegui/tree/main/tests


app.add_static_files("/statics", "statics")


def dummy_today():
return datetime.date(2024, 5, 1)

Expand All @@ -25,6 +22,8 @@ def dummy_days(count):


def test_index_page(screen: Screen) -> None:
app.add_static_files("/statics", "statics")

days = dummy_days(7)
habits = dummy_habit_list(days)

Expand All @@ -35,6 +34,8 @@ def test_index_page(screen: Screen) -> None:


def test_add_page(screen: Screen) -> None:
app.add_static_files("/statics", "statics")

days = dummy_days(7)
habits = dummy_habit_list(days)

Expand All @@ -45,6 +46,8 @@ def test_add_page(screen: Screen) -> None:


def test_habit_detail_page(screen: Screen) -> None:
app.add_static_files("/statics", "statics")

days = dummy_days(7)
today = days[-1]
habits = dummy_habit_list(days)
Expand Down

0 comments on commit 94b7f70

Please sign in to comment.