From 0a4d40abfdc3dd3a70141d62a93ed3674d266e30 Mon Sep 17 00:00:00 2001 From: Taka Date: Wed, 19 Dec 2018 18:45:18 +0000 Subject: [PATCH] Install the VASL module correctly when running tests. --- vasl_templates/webapp/tests/remote.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vasl_templates/webapp/tests/remote.py b/vasl_templates/webapp/tests/remote.py index 83718e3..9b47b1d 100644 --- a/vasl_templates/webapp/tests/remote.py +++ b/vasl_templates/webapp/tests/remote.py @@ -126,6 +126,8 @@ class ControlTests: if vmod is None: _logger.info( "Installing VASL module: %s", vmod ) webapp_files.vasl_mod = None + if "VASL_MOD" in app.config: + del app.config[ "VASL_MOD" ] else: fnames = self._do_get_vasl_mods() if vmod == "random": @@ -136,6 +138,7 @@ class ControlTests: assert vmod in fnames fname = vmod _logger.info( "Installing VASL module: %s", fname ) + app.config[ "VASL_MOD" ] = fname webapp_files.vasl_mod = VaslMod( fname, DATA_DIR ) return self