Beispiel #1
0
 def setUp(self):
     self.notes = NotesOver()
     self.testNote = tools.Struct(title="note title")
     # set the timezone for the date tests to work
     # this is particularly important on Travis CI, where
     # the timezone may not be the same as our dev machine
     os.environ['TZ'] = "PST-0800"
     time.tzset()
Beispiel #2
0
 def do_test_editWithEditorInThread(self, txt, expected):
     testNote = tools.Struct(title="note title", content=txt)
     # hack to make updateNote work - see above
     testNote.guid = testNote
     testData = self.notes._parseInput("title", txt, "tag1, tag2", None,
                                       testNote)
     result = self.notes._editWithEditorInThread(testData, testNote)
     self.assertEqual(Editor.ENMLtoText(testNote.content), expected)
Beispiel #3
0
 def setUp(self):
     self.notes = NotesOver()
     self.testNote = tools.Struct(title="note title")