示例#1
0
    def test_settings_run(self):
        SettingsProcedure.run(self.project_path)

        self.assertSetEqual(
            set(ProjectSettings.get_registered_theme_name()),
            set(['test_theme1', 'test_theme2']),
        )
        self.assertSetEqual(
            set(ThemeSettings._vars),
            set(['test_theme1', 'test_theme2']),
        )
示例#2
0
    def test_plugin_run(self):
        SettingsProcedure.run(self.project_path)
        flat_orders, cli_indices = PluginProcedure.run()

        self.assertSetEqual(
            set(flat_orders),
            set([PluginIndex('test_theme1', 'a'),
                 PluginIndex('test_theme2', 'b')]),
        )
        self.assertSetEqual(
            set(cli_indices),
            set([PluginIndex('test_theme1', 'test_cli')]),
        )