예제 #1
0
    def test_constant_values(self):
        client = AutoRestValidationTest("abc123",
                                        "12-34-5678",
                                        base_url="http://localhost:3000")

        client.get_with_constant_in_path()

        body = Product(child=ChildProduct())
        product = client.post_with_constant_in_body(body=body)
        self.assertIsNotNone(product)
예제 #2
0
    def test_constant_values(self):
        client = AutoRestValidationTest(
            "abc123",
            "12-34-5678",
            base_url="http://localhost:3000")

        client.get_with_constant_in_path()

        body = Product(child=ChildProduct())
        product = client.post_with_constant_in_body(body=body)
        self.assertIsNotNone(product)
예제 #3
0
    def test_constant_values(self):

        config = AutoRestValidationTestConfiguration(
            "abc123", "12-34-5678", base_url="http://localhost:3000")
        config.log_level = log_level
        client = AutoRestValidationTest(config)

        client.get_with_constant_in_path()

        # TODO: Const body should be built implicitly
        body = Product(child=ChildProduct())
        body.const_child = ConstantProduct()

        product = client.post_with_constant_in_body(body=body)
        self.assertIsNotNone(product)
예제 #4
0
    def test_constant_values(self):

        config = AutoRestValidationTestConfiguration(
            "abc123",
            "12-34-5678",
            base_url="http://localhost:3000")
        config.log_level = log_level
        client = AutoRestValidationTest(config)

        client.get_with_constant_in_path()

        # TODO: Const body should be built implicitly
        body = Product(child=ChildProduct())
        body.const_child = ConstantProduct()

        product = client.post_with_constant_in_body(body=body)
        self.assertIsNotNone(product)