Wallet editor into separate file

This commit is contained in:
2023-01-31 17:13:41 +00:00
parent 57930b7aa5
commit 1f5b56a593
11 changed files with 840 additions and 806 deletions

View File

@@ -55,7 +55,10 @@ class SimpleTest(SimpleTestCase):
from troggle.parsers.people import GetPersonExpeditionNameLookup
def test_import_views_uploads(self):
from troggle.core.views.uploads import dwgupload, scanupload
from troggle.core.views.uploads import dwgupload
def test_import_views_walletedit(self):
from troggle.core.views.wallets import walletedit
def test_import_parsers_QMs(self):
from troggle.core.models.logbooks import QM

View File

@@ -73,7 +73,7 @@ class FixturePageTests(TestCase):
class PostTests(TestCase):
"""Tests scanupload form"""
"""Tests walletedit form"""
fixtures = ["auth_users"]
@@ -120,7 +120,7 @@ class PostTests(TestCase):
with open("core/fixtures/test_upload_file.txt", "r") as testf:
response = self.client.post(
f"/scanupload/{testyear}:00", data={"name": "test_upload_file.txt", "uploadfiles": testf}
f"/walletedit/{testyear}:00", data={"name": "test_upload_file.txt", "uploadfiles": testf}
)
content = response.content.decode()
self.assertEqual(response.status_code, 200)