def execute_from_command_line():
    from wirecloud.commons.commands.convert import ConvertCommand
    from wirecloud.commons.commands.startproject import StartprojectCommand
    utility = CommandLineUtility({
        "convert": ConvertCommand(),
        "startproject": StartprojectCommand()
    })
    try:
        utility.execute()
    except:
        sys.exit(1)
Exemple #2
0
def execute_from_command_line():
    from wirecloud.commons.commands.convert import ConvertCommand
    from wirecloud.commons.commands.startproject import StartprojectCommand
    from wirecloud.fiware.commands.passintegrationtests import IntegrationTestsCommand
    utility = CommandLineUtility({
        "convert": ConvertCommand(),
        "startproject": StartprojectCommand(),
        "passintegrationtests": IntegrationTestsCommand(),
    })
    try:
        utility.execute()
    except:
        sys.exit(1)
Exemple #3
0
    def setUpClass(cls):

        from wirecloud.commons.commands.convert import ConvertCommand
        from wirecloud.commons.commands.startproject import StartprojectCommand
        cls.command_utility = CommandLineUtility(
            {
                "convert": ConvertCommand(),
                "startproject": StartprojectCommand(),
            },
            prog_name='wirecloud-admin')
        cls.test_data_dir = os.path.join(os.path.dirname(__file__),
                                         'test-data')

        super(BaseAdminCommandTestCase, cls).setUpClass()
Exemple #4
0
    def setUpClass(cls):

        from wirecloud.commons.commands.convert import ConvertCommand
        from wirecloud.commons.commands.startproject import StartprojectCommand
        from wirecloud.fiware.commands.passintegrationtests import IntegrationTestsCommand
        cls.command_utility = CommandLineUtility(
            {
                "convert": ConvertCommand(),
                "startproject": StartprojectCommand(),
                "passintegrationtests": IntegrationTestsCommand(),
            },
            prog_name='wirecloud-admin')
        cls.test_data_dir = os.path.join(os.path.dirname(__file__),
                                         'test-data')
Exemple #5
0
    def setUp(self):

        from wirecloud.commons.commands.startproject import StartprojectCommand
        self.command = StartprojectCommand()