Skip to content
Snippets Groups Projects

Resolve "Make exam a many to many field on StudentInfo model"

Compare and Show latest version
2 files
+ 16
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -103,14 +103,16 @@ class ExportTestModal(GradyTestCase):
try:
with open(JSON_EXPORT_FILE) as f:
data = json.load(f)
self.assertEqual('B.Inf.4242 Test Module', data[0]['Exam'])
self.assertEqual('B.Inf.4242 Test Module', data[0]['Exams'][0]['exam']['moduleReference'])
except Exception as e:
print(data)
raise e
finally:
os.remove(JSON_EXPORT_FILE)
def test_export_instance(self):
fact.SubmissionFactory()
#fact.ExamInfoFactory()
self._login()
self.browser.find_element_by_id('export-btn').click()
self.browser.find_element_by_id('export-list1').click()
Loading