Skip to content

Commit c773096

Browse files
committed
wip: release pipeline
1 parent 1f44b3c commit c773096

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

api/tests/unit/features/release_pipeline/core/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
@pytest.fixture()
1010
def release_pipeline(project: Project) -> ReleasePipeline:
11-
return ReleasePipeline.objects.create(
11+
release_pipeline = ReleasePipeline.objects.create(
1212
name="Test Pipeline",
1313
project=project,
1414
)
15+
return release_pipeline # type: ignore[no-any-return]

api/tests/unit/features/release_pipeline/core/test_unit_release_pipeline_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def test_release_pipeline_get_first_stage_returns_correct_stage(
7474
first_stage = release_pipeline.get_first_stage()
7575

7676
# Then
77-
assert first_stage.order == 0
77+
assert first_stage.order == 0 # type: ignore[union-attr]
7878

7979

8080
def test_release_pipeline_get_last_stage_returns_none_if_pipeline_has_no_stages(
@@ -103,7 +103,7 @@ def test_release_pipeline_get_last_stage_returns_correct_stage(
103103
last_stage = release_pipeline.get_last_stage()
104104

105105
# Then
106-
assert last_stage.order == 2
106+
assert last_stage.order == 2 # type: ignore[union-attr]
107107

108108

109109
def test_release_pipeline_get_create_log_message(

0 commit comments

Comments
 (0)