Beispiel #1
0
    def test_recipe_daylight_factor_gridbased_post(self):
        """Test case for recipe_daylight_factor_gridbased_post

        Create a new analysis_grid object
        """
        recipe = DaylightFactorGridBasedSchema()
        response = self.client.open('/api/recipe/daylight_factor/gridbased',
                                    method='POST',
                                    data=json.dumps(recipe),
                                    content_type='application/json')
        self.assert200(response,
                       'Response body is : ' + response.data.decode('utf-8'))
Beispiel #2
0
def recipe_daylight_factor_gridbased_post(recipe):  # noqa: E501
    """Create a new analysis_grid object

    Adds a new analysis_grid object to the list # noqa: E501

    :param recipe: A analysis_grid JSON objectr with a uuid key.
    :type recipe: dict | bytes

    :rtype: SuccesfullyCreatedSchema
    """
    if connexion.request.is_json:
        recipe = DaylightFactorGridBasedSchema.from_dict(connexion.request.get_json())  # noqa: E501
    return 'do some magic!'
Beispiel #3
0
    def test_recipe_daylight_factor_gridbased_uuid_put(self):
        """Test case for recipe_daylight_factor_gridbased_uuid_put

        Modify an existing analysis_grid object
        """
        recipe = DaylightFactorGridBasedSchema()
        response = self.client.open(
            '/api/recipe/daylight_factor/gridbased/{uuid}'.format(uuid='uuid_example'),
            method='PUT',
            data=json.dumps(recipe),
            content_type='application/json')
        self.assert200(response,
                       'Response body is : ' + response.data.decode('utf-8'))
Beispiel #4
0
def recipe_daylight_factor_gridbased_uuid_put(uuid, recipe):  # noqa: E501
    """Modify an existing analysis_grid object

    Modifies any parameter (except uuid) of a daylight_factor recipe object by completely replacing the definition object. A finer grain method can be set up later. # noqa: E501

    :param uuid: The unique identifier of the daylight_factor recipe.
    :type uuid: str
    :param recipe: A analysis_grid JSON objectr with a uuid key.
    :type recipe: dict | bytes

    :rtype: None
    """
    if connexion.request.is_json:
        recipe = DaylightFactorGridBasedSchema.from_dict(connexion.request.get_json())  # noqa: E501
    return 'do some magic!'