File tree Expand file tree Collapse file tree
tests/unit/features/versioning
docs/docs/deployment-self-hosting/observability Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44from django .db import transaction
55from django .utils import timezone
66
7- from environments .tasks import rebuild_environment_document
87from features .versioning .models import EnvironmentFeatureVersion
98from features .versioning .signals import environment_feature_version_published
10- from features .versioning .tasks import trigger_update_version_webhooks
119from features .workflows .core .exceptions import ChangeRequestNotApprovedError
1210
1311if TYPE_CHECKING :
Original file line number Diff line number Diff line change 66from features .versioning .receivers import update_environment_document
77
88
9- def test_update_environment_document__immediate_publish__does_not_schedule_rebuild () -> None :
9+ def test_update_environment_document__immediate_publish__does_not_schedule_rebuild () -> (
10+ None
11+ ):
1012 # Given
1113 mock_instance = mock .MagicMock ()
1214 mock_instance .live_from = timezone .now () - timedelta (seconds = 1 )
@@ -22,7 +24,9 @@ def test_update_environment_document__immediate_publish__does_not_schedule_rebui
2224 mock_rebuild .delay .assert_not_called ()
2325
2426
25- def test_update_environment_document__scheduled_publish__schedules_rebuild_at_live_from () -> None :
27+ def test_update_environment_document__scheduled_publish__schedules_rebuild_at_live_from () -> (
28+ None
29+ ):
2630 # Given
2731 future = timezone .now () + timedelta (hours = 1 )
2832 mock_instance = mock .MagicMock ()
Original file line number Diff line number Diff line change @@ -381,7 +381,7 @@ Attributes:
381381### ` workflows.change_request.committed `
382382
383383Logged at ` info ` from:
384- - ` api/core/workflows_services.py:39 `
384+ - ` api/core/workflows_services.py:37 `
385385
386386Attributes:
387387 - ` environment.id `
@@ -391,15 +391,15 @@ Attributes:
391391### ` workflows.missing_live_segment `
392392
393393Logged at ` warning ` from:
394- - ` api/core/workflows_services.py:114 `
394+ - ` api/core/workflows_services.py:100 `
395395
396396Attributes:
397397 - ` draft_segment `
398398
399399### ` workflows.segment_revision_created `
400400
401401Logged at ` info ` from:
402- - ` api/core/workflows_services.py:119 `
402+ - ` api/core/workflows_services.py:105 `
403403
404404Attributes:
405405 - ` revision_id `
You can’t perform that action at this time.
0 commit comments