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)
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)
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)