Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
YolanFery committed Nov 22, 2024
1 parent d5a52c7 commit 3212b60
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,17 @@ def get_pipeline_version_model(self):
def test_set_version_numbers(self):
PipelineVersion = self.get_pipeline_version_model()
pipeline = self.get_pipeline_model().objects.create(code=self.pipeline_code)
for date in ["2023-01-01", "2023-01-02", "2023-01-03"]:
PipelineVersion.objects.create(pipeline=pipeline, created_at=date)
for version_number, name, date in [
(3, "3", "2023-01-01"),
(10, "10", "2023-01-02"),
(20, "20", "2023-01-03"),
]:
PipelineVersion.objects.create(
pipeline=pipeline,
version_number=version_number,
name=name,
created_at=date,
)

self.migrator.migrate("pipelines", "0050_pipelineversion_set_version_numbers")

Expand Down

0 comments on commit 3212b60

Please sign in to comment.