Skip to content

Commit

Permalink
Fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzohrab committed Jan 7, 2025
1 parent 31c792f commit e258ae6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
from invoke import task, Collection
from lute.config.app_config import AppConfig

# pylint: disable=unused-argument


@task
def lint(c):
Expand Down Expand Up @@ -120,7 +122,7 @@ def _wait_for_running_site(port):
raise Exception("Site didn't start?") # pylint: disable=broad-exception-raised


def _run_browser_tests(c, port, run_test):
def _run_browser_tests(port, run_test):
"Start server on port, and run tests."
tests_failed = False
if _site_is_running(port):
Expand Down Expand Up @@ -200,7 +202,7 @@ def _run_acceptance( # pylint: disable=too-many-arguments,too-many-positional-a
run_test.append("-m mobile")
run_test.append("--mobile")

_run_browser_tests(c, 5001, run_test)
_run_browser_tests(5001, run_test)


acceptance_help = {
Expand Down Expand Up @@ -275,7 +277,7 @@ def playwright(c):
If Lute's not running on specified port, start a server.
"""
run_test = ["pytest", "tests/playwright/playwright.py", "-s"]
_run_browser_tests(c, 5001, run_test)
_run_browser_tests(5001, run_test)


@task(pre=[_ensure_test_db], help={"html": "open html report"})
Expand Down

0 comments on commit e258ae6

Please sign in to comment.