summaryrefslogtreecommitdiff
path: root/archaeological_operations/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-06-14 12:06:26 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-06-14 12:06:26 +0200
commit32129b2676c3e181bf55e9e32b0ad82f6a2b0d6a (patch)
treedc277998f59aa86aa34eb4b5035e7512a7996065 /archaeological_operations/tests.py
parent865392d85905f58275b3dbc2670ce5d9e611eb2d (diff)
downloadIshtar-32129b2676c3e181bf55e9e32b0ad82f6a2b0d6a.tar.bz2
Ishtar-32129b2676c3e181bf55e9e32b0ad82f6a2b0d6a.zip
Fix reset for operation - cleaning
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r--archaeological_operations/tests.py50
1 files changed, 0 insertions, 50 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py
index a50681667..9f08f1e48 100644
--- a/archaeological_operations/tests.py
+++ b/archaeological_operations/tests.py
@@ -2220,56 +2220,6 @@ class OperationAdminActWizardCreationTest(WizardTest, OperationInitTest,
self.number + 1)
-"""
-class OperationSourceWizardModificationTest(WizardTest, OperationInitTest,
- TestCase):
- fixtures = FILE_FIXTURES
- url_name = 'operation_source_modification'
- wizard_name = 'operation_source_wizard'
- steps = views.operation_source_modification_steps
- form_datas = [
- FormData(
- "Test remove all authors",
- form_datas={
- 'selec-operation_source_modification': {},
- 'source-operation_source_modification': {
- 'title': "New title",
- 'source_type': None,
- 'index': 42
- },
- 'authors-operation_source_modification': []
- },
- )
- ]
-
- def pre_wizard(self):
- ope = self.get_default_operation()
- self.source = models.OperationSource.objects.create(
- title="Old title", source_type=SourceType.objects.all()[0],
- operation=ope
- )
- author = Author.objects.create(
- author_type=AuthorType.objects.all()[0],
- person=Person.objects.all()[0]
- )
-
- self.source.authors.add(author)
-
- data = self.form_datas[0].form_datas
- data['selec-operation_source_modification']['pk'] = self.source.pk
-
- data['source-operation_source_modification']['hidden_operation_id'] = \
- self.source.pk
- data['source-operation_source_modification'][
- 'source_type'] = SourceType.objects.all()[1].pk
- super(OperationSourceWizardModificationTest, self).pre_wizard()
-
- def post_wizard(self):
- source = models.OperationSource.objects.get(pk=self.source.pk)
- self.assertEqual(source.authors.count(), 0)
-"""
-
-
class SiteTest(TestCase, OperationInitTest):
fixtures = FILE_FIXTURES