瀏覽代碼

Add docstrings to tests

Getty Ritter 5 年之前
父節點
當前提交
999eb44b14
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tasks.py

+ 3 - 0
tasks.py

@@ -2,10 +2,12 @@ from invoke import task
 
 @task
 def test(c):
+    '''Run all the provided tests'''
     c.run('poetry run python -m pytest tests/*.py')
 
 @task
 def run(c, port=8080, host='127.0.0.1'):
+    '''Run a debug server locally'''
     c.run(
         f'poetry run python -m flask run -p {port} -h {host}',
         env={'FLASK_APP': 'lc/main.py'},
@@ -13,4 +15,5 @@ def run(c, port=8080, host='127.0.0.1'):
 
 @task
 def install(c):
+    '''Install the listed dependencies into a virtualenv'''
     c.run('poetry install')