Skip to content

Commit

Permalink
fix(failing tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSchapp committed Nov 13, 2022
2 parents 4bbf281 + 7a41c4b commit 3337353
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
micropython-1.19.1
3.10.7
10 changes: 9 additions & 1 deletion tests/test_webpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,15 @@ def test_load_webpage():
@patch("lib.webpage.template.render_template")
@patch("lib.webpage.load_webpage")
def test_default_route(mock_webpage, render_template):
webpage = default_route()
webpage = default_route(["test_ap"])
mock_webpage.assert_called_with('webpages/default.html')


@patch("lib.webpage.template.render_template")
@patch("lib.webpage.load_webpage")
def test_no_nearby_access_points(mock_webpage, render_template):
webpage = default_route([])
mock_webpage.assert_called_with('webpages/default.html')



0 comments on commit 3337353

Please sign in to comment.