Skip to content

warning in the tests? #515

Open
Open
@mircealungu

Description

@mircealungu

================================================ warnings summary =================================================
tests/api/test_endpoint.py::test_set_rule_post[1]
/Users/gh/Flask-MonitoringDashboard/tests/api/test_endpoint.py:129: LegacyAPIWarning: The Query.get() method is considered legacy as of the 1.x series of SQLAlchemy and becomes a legacy construct in 2.0. The method is now available as Session.get() (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
endpoint = session.query(Endpoint).get(endpoint.id) # reload the endpoint

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================================= 138 passed, 1 warning in 12.89s =========================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions