forked from expo/troggle
Make .3d files in same dir as .svx
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user