From 7bb38394bb433010a928a7280daf36d347ff37fa 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 16f3cfa099..4446928dd0 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