def basic_info(err=None): if request.method == 'POST': print("POST") tl = TechLag(package=request.form['package'], version=request.form['version'], kind=request.form["kind"]) results = tl.analyze().to_html(classes="table") else: results = "" return render_template('form.html', results=results, err=err)
def test_analyze(self): """Test whether a NotImplementedError is thrown""" tl = TechLag(package="grunt", version="1.0.0", url="https://...") with self.assertRaises(NotImplementedError): tl.analyze()