~roeldeconinck/mnemosyne-proj/import

« back to all changes in this revision

Viewing changes to mnemosyne/tests/test_mem_import.py

  • Committer: Peter Bienstman
  • Date: 2011-08-26 17:32:52 UTC
  • Revision ID: peter.bienstman@ugent.be-20110826173252-2t6lutikbqzn2pmt
-when detecting missing media, only warn once, and give all the affected cards a 
 'MISSING_MEDIA' tag, so that you can find them back later. 
 (from a bug report by Dandelo)
-dialogs now have max/min button under windows
-the main dialogs not only save their size, but also their position

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
        self.review_controller().reset()
19
19
 
20
20
    def show_information(self, message):
21
 
        if message.startswith("Missing media file"):
 
21
        if message.startswith("Warning: "):
22
22
            return 0
23
23
        if message.startswith("No history found to import."):
24
24
            return 0
267
267
        self.review_controller().reset()
268
268
        assert self.review_controller().card.fact["loc"] == \
269
269
               u"""<b>Freistaat Th\xfcringen (Free State of Thuringia)</b>"""
270
 
        assert self.review_controller().card.tag_string() == "Germany: States"
 
270
        assert self.review_controller().card.tag_string() == "Germany: States, MISSING_MEDIA"
271
271
 
272
272
    def test_logs_new_1(self):
273
273
        self.database().update_card_after_log_import = (lambda x, y, z: 0)