Пример #1
0
 def test_user_get_name(self):
     self.assertEqual(
         data.user_data["name"],
         us.getname(data.user_data["path"], (data.user_data["email"],)),
     )
     self.assertNotEqual(
         data.test_data["name"],
         us.getname(data.user_data["path"], (data.user_data["email"],)),
     )
Пример #2
0
def dash():
    if g.user != None:
        name = getname(g.user)

        return render_template("temp.html", name=name, email=g.user[0])
    return redirect('/')
Пример #3
0
def disp():
    if g.user != None:
        summ = getq(g.user[0])[0]

        return render_template("display.html", name=getname(g.user),  text=summ)
    return redirect('/')