~thelinuxguy/openlp/bible-improvements

« back to all changes in this revision

Viewing changes to tests/functional/openlp_plugins/presentations/test_mediaitem.py

  • Committer: Tim Bentley
  • Date: 2017-12-24 07:27:40 UTC
  • mfrom: (2792.1.47 fixes)
  • Revision ID: tim.bentley@gmail.com-20171224072740-6vxvu19b4uenr501
All tests migrated to assert from self.assert except projection
All tests pass on linux with pytest and nose2

lp:~trb143/openlp/asserts2 (revision 2839)
https://ci.openlp.io/job/Branch-01-Pull/2381/                          [SUCCESS]
https://ci.openlp.io/job/Branch-02a-Linux-Tests/2282/                  [SUCCESS]
  File "./scripts/jenkins_script.py", line 256, in <module>
    main()
  File "./scripts/jenkins_script.py", line 252, in main
    jenkins_trigger.print_output(can_continue=args.alw...

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
            self.media_item.build_file_mask_string()
82
82
 
83
83
        # THEN: The file mask should be generated correctly
84
 
        self.assertIn('*.odp', self.media_item.on_new_file_masks, 'The file mask should contain the odp extension')
85
 
        self.assertIn('*.ppt', self.media_item.on_new_file_masks, 'The file mask should contain the ppt extension')
86
 
        self.assertIn('*.pdf', self.media_item.on_new_file_masks, 'The file mask should contain the pdf extension')
87
 
        self.assertIn('*.xps', self.media_item.on_new_file_masks, 'The file mask should contain the xps extension')
88
 
        self.assertIn('*.oxps', self.media_item.on_new_file_masks, 'The file mask should contain the oxps extension')
 
84
        assert '*.odp' in self.media_item.on_new_file_masks, 'The file mask should contain the odp extension'
 
85
        assert '*.ppt' in self.media_item.on_new_file_masks, 'The file mask should contain the ppt extension'
 
86
        assert '*.pdf' in self.media_item.on_new_file_masks, 'The file mask should contain the pdf extension'
 
87
        assert '*.xps' in self.media_item.on_new_file_masks, 'The file mask should contain the xps extension'
 
88
        assert '*.oxps' in self.media_item.on_new_file_masks, 'The file mask should contain the oxps extension'
89
89
 
90
90
    def test_clean_up_thumbnails(self):
91
91
        """