diff options
author | ankitjavalkar | 2019-02-19 11:29:28 +0530 |
---|---|---|
committer | GitHub | 2019-02-19 11:29:28 +0530 |
commit | 8b5674dbd170307f5acac63fa1c53fd94dbe990e (patch) | |
tree | 9e6a3f33c4cfcf5cc97774706e7046c37f680cd7 /yaksh/test_models.py | |
parent | b71b517173cac8b4f266f36d0cbc918551b3ee73 (diff) | |
parent | 4b535014a5af1612a81e8ee691e47ef154fa6cae (diff) | |
download | online_test-8b5674dbd170307f5acac63fa1c53fd94dbe990e.tar.gz online_test-8b5674dbd170307f5acac63fa1c53fd94dbe990e.tar.bz2 online_test-8b5674dbd170307f5acac63fa1c53fd94dbe990e.zip |
Merge pull request #577 from CruiseDevice/preview_question_paper_in_quiz
Add Preview QuestionPaper button in Quiz view page
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r-- | yaksh/test_models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py index 53ee656..374fb29 100644 --- a/yaksh/test_models.py +++ b/yaksh/test_models.py @@ -2144,9 +2144,9 @@ class FileUploadTestCases(unittest.TestCase): ) def test_get_file_name(self): - print((self.file_upload.file.path)) self.assertEqual(self.file_upload.get_filename(), self.filename) def tearDown(self): - os.remove(self.file_upload.file.path) + if os.path.isfile(self.file_upload.file.path): + os.remove(self.file_upload.file.path) self.file_upload.delete() |