forked from expo/troggle
test for loser git repo sanity
This commit is contained in:
@@ -193,6 +193,7 @@ class PostTests(TestCase):
|
||||
|
||||
def test_dwg_upload_drawing(self):
|
||||
'''Expect no-suffix file to upload
|
||||
Note that this skips the git commit process. That would need a new test.
|
||||
Need to login first.
|
||||
'''
|
||||
c = self.client
|
||||
@@ -214,7 +215,7 @@ class PostTests(TestCase):
|
||||
phmatch = re.search(ph, content)
|
||||
self.assertIsNotNone(phmatch, "Expect no-suffix file to upload OK. Failed to find expected text: '" + ph +"'")
|
||||
|
||||
# Does not use the filename Django actually uses, assumes it is unchanged. Potential bug.
|
||||
# Does not use the filename Django actually uses, assumes it is unchanged. Bug: accumulates one file with random name added each time it is run.
|
||||
remove_file = pathlib.Path(settings.DRAWINGS_DATA) / 'uploads' / 'test_upload_nosuffix'
|
||||
remove_file.unlink()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user