22 lines
604 B
Text
22 lines
604 B
Text
@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
|