sandbox/python/modules/pytest_imports_1.puml
2026-02-13 17:36:23 +03:00

22 lines
604 B
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@startuml
title Импорт на уровне модуля (НЕ работает)
participant "pytest" as P
participant "test_module" as T
participant "review_task.py" as R
participant "db.maas()" as D
participant "settings" as S
P -> T: import test_module
T -> R: import MaasReviewTask
R -> R: define class MaasReviewTask
R -> D: COLLECTION = db.maas().review_tasks
D -> S: get_mongo_uri('maas')
S --> D: Error: settings not initialized
note right: settings еще не настроены!
P -> P: setup fixtures
note right: Слишком поздно!
P -> T: run test_track_work_time()
@enduml