my eye

test_app.py

Raw

import web

from webint_system import app


def test_app():
    web.tx.user.is_owner = True
    response = app.get("")
    assert response.status == "200 OK"
    assert [_.text for _ in response.dom.select(f"h2, h3")] == [
        "Addresses",
        "Domain Name System (DNS)",
        "The Onion Router (tor)",
        "Software",
        "Routes",
        "Wrappers",
        "Settings",
    ]