@@ -85,12 +85,12 @@ def kw_docs(ctx, version=None):
8585gtag('config', 'UA-106835747-4', {
8686 'anonymize_ip': true,
8787 'page_path': location.pathname+location.search+location.hash });
88- window.onhashchange = function() {
88+ window.onhashchange = function() {
8989 gtag('event', 'HashChange', {
9090 'event_category': 'Subsection',
9191 'event_label': window.location.hash
9292 });
93- }
93+ }
9494"""
9595 soup .head .append (script_data )
9696 with out .open ("w" ) as file :
@@ -188,8 +188,8 @@ def init_labels(ctx, username=None, password=None):
188188@task
189189def lint (ctx ):
190190 """Runs black and flake8 for project Python code."""
191- ctx .run ("black --config pyproject.toml src/ utest/ atest/" )
192- ctx .run ("flake8 --config .flake8 src/ utest/ atest/" )
191+ ctx .run ("black --config pyproject.toml tasks.py src/ utest/ atest/" )
192+ ctx .run ("flake8 --config .flake8 tasks.py src/ utest/ atest/" )
193193
194194
195195@task
@@ -208,7 +208,20 @@ def atest(ctx, suite=None):
208208 Args:
209209 suite: Select which suite to run.
210210 """
211- commad = "python atest/run.py headlesschrome"
211+ command = "python atest/run.py headlesschrome"
212212 if suite :
213- commad = f"{ commad } --suite { suite } "
214- ctx .run (commad )
213+ command = f"{ command } --suite { suite } "
214+ ctx .run (command )
215+
216+
217+ @task
218+ def utest (ctx , suite = None ):
219+ """Runs utest/run.py
220+
221+ Args:
222+ suite: Select which suite to run.
223+ """
224+ command = "python utest/run.py"
225+ if suite :
226+ command = f"{ command } --suite { suite } "
227+ ctx .run (command )
0 commit comments