From 7b5112f0a6aef712a35960e4ceea5a3bef9bd751 Mon Sep 17 00:00:00 2001 From: mlbonhomme <bonhomme@teklia.com> Date: Tue, 26 Mar 2024 12:54:07 +0100 Subject: [PATCH] fix rebase --- arkindex/training/tests/test_datasets_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arkindex/training/tests/test_datasets_api.py b/arkindex/training/tests/test_datasets_api.py index 83fc2ab45c..9d6da08146 100644 --- a/arkindex/training/tests/test_datasets_api.py +++ b/arkindex/training/tests/test_datasets_api.py @@ -683,7 +683,7 @@ class TestDatasetsAPI(FixtureAPITestCase): ) def test_update_ponos_task_state_requires_dataset_in_process(self): - self.process.process_datasets.all().delete() + self.process.process_sets.all().delete() with self.assertNumQueries(5): response = self.client.put( reverse("api:dataset-update", kwargs={"pk": self.dataset.pk}), @@ -844,7 +844,7 @@ class TestDatasetsAPI(FixtureAPITestCase): self.assertEqual(self.dataset.state, DatasetState.Building) def test_partial_update_ponos_task_state_requires_dataset_in_process(self): - self.process.process_datasets.all().delete() + self.process.process_sets.all().delete() with self.assertNumQueries(5): response = self.client.patch( reverse("api:dataset-update", kwargs={"pk": self.dataset.pk}), -- GitLab