~openlp-core/openlp/trunk

« back to all changes in this revision

Viewing changes to tests/functional/openlp_plugins/images/test_imagetab.py

  • Committer: Tim Bentley
  • Author(s): simon.hanna at serve-me
  • Date: 2016-01-11 21:57:20 UTC
  • mfrom: (2600.2.2 fix-stylesheet)
  • Revision ID: tim.bentley@gmail.com-20160111215720-l234kk3hr3fc7bdb
Reenable the stylesheet
remove the icons from mediamanager so that display in plasma works

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
 
81
81
    def save_tab_change_test_test(self):
82
82
        """
83
 
        Test a change triggers post processing.
 
83
        Test a color change is applied and triggers post processing.
84
84
        """
85
85
        # GIVEN: Apply a change to the form.
86
 
        self.form.background_color = '#999999'
 
86
        self.form.on_background_color_changed('#999999')
87
87
        # WHEN: the save is invoked
88
88
        self.form.save()
89
89
        # THEN: the post process should be requested
90
90
        self.assertEqual(1, self.form.settings_form.register_post_process.call_count,
91
91
                         'Image Post processing should have been requested')
 
92
        # THEN: The color should be set
 
93
        self.assertEqual(self.form.background_color, '#999999', 'The updated color should have been saved')