Make .3d files in same dir as .svx

This commit is contained in:
Philip Sargent
2022-03-06 01:29:45 +00:00
parent 7a58aac08e
commit 3ac617431f
7 changed files with 46 additions and 19 deletions

View File

@@ -108,7 +108,7 @@ class PostTests(TestCase):
def test_dwg_upload_txt(self):
'''Expect .txt file to be refused upload
'''Expect .pdf file to be refused upload
Need to login first.
'''
c = self.client
@@ -118,7 +118,7 @@ class PostTests(TestCase):
self.assertTrue(u.is_active, 'User \'' + u.username + '\' is INACTIVE')
logged_in = c.login(username=u.username, password='secretword')
with open('core/fixtures/test_upload_file.txt','r') as testf:
with open('core/fixtures/test_upload_file.pdf','r') as testf:
response = self.client.post('/dwgupload/uploads', data={'name': 'test_upload_file.txt', 'uploadfiles': testf })
content = response.content.decode()
self.assertEqual(response.status_code, 200)