From f30a45af0556db5e0bd30cc228d2ba20da83c722 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 13 Mar 2024 10:02:44 +0100 Subject: [PATCH] test detele one file of import data --- idhub/tests/test_credentials.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/idhub/tests/test_credentials.py b/idhub/tests/test_credentials.py index c5e6ead..ac95977 100644 --- a/idhub/tests/test_credentials.py +++ b/idhub/tests/test_credentials.py @@ -239,3 +239,13 @@ class CredentialsViewTest(TestCase): def test_user_require_credential(self): for p in PILOTS: self._user_require_credentail(p) + + def test_remove_file_data(self): + p = PILOTS[0] + self.admin_login() + self._upload_data_membership(p) + url = reverse('idhub:admin_import_del', args=[1]) + response = self.client.get(url) + self.assertEqual(response.status_code, 302) + self.assertEqual(response.url, reverse('idhub:admin_import')) +