From af77a2a389e3d459489ada56cbbc597cc39c9b7d Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 6 Sep 2021 21:38:40 +0200 Subject: [PATCH] removed obsolete test-interactive command --- scodoc.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/scodoc.py b/scodoc.py index fcefe749..3a085227 100755 --- a/scodoc.py +++ b/scodoc.py @@ -188,24 +188,6 @@ def create_dept(dept): # create-dept return 0 -@app.cli.command() -@click.argument("filename") -@with_appcontext -def test_interactive(filename=None): - "Run interactive test" - import flask_login - from app import decorators - - click.echo("Executing {}".format(filename)) - with app.test_request_context(""): - u = User.query.first() - flask_login.login_user(u) - REQUEST = decorators.ZRequest() - exec(open(filename).read()) - - click.echo("Done.") - - @app.cli.command() @with_appcontext def import_scodoc7_users(): # import-scodoc7-users