refactor(backend): replaced datasources dict with properties

This commit is contained in:
2025-03-02 11:58:12 +01:00
parent ce04dac5be
commit ff6946d2bc
13 changed files with 80 additions and 46 deletions

View File

@ -25,7 +25,7 @@ def test_scan_ingestor_create_scan(scan_ingestor, backend):
Test that the login endpoint returns a token.
"""
client, app = backend
mongo: MongoDBDatasource = app.datasources.datasources["mongodb"]
mongo: MongoDBDatasource = app.datasources.mongodb
deployment_id = str(mongo.find_one("deployments", {}, dtype=Deployments).id)
session_id = str(mongo.find_one("sessions", {"deployment_id": deployment_id}, dtype=Session).id)
msg = messages.ScanStatusMessage(