def var(self): arguments = src.io.arguments.Arguments() configurations = config.Config() urlstring = configurations.urlstring req = arguments.url(urlstring) return arguments.parameters(req)
def test_parameters(self, urlstring, arguments): req = arguments.url(urlstring) var = arguments.parameters(req) assert isinstance( var.kwargs, dict ), "A dictionary of parameters is required for reading the metadata file" assert isinstance( var.data, str), "A directory name is required for the downloaded files"
def var(self): arguments = src.io.arguments.Arguments() urlstring = 'https://raw.githubusercontent.com/discourses/augmentation/develop/resources/variables.yml' req = arguments.url(urlstring) return arguments.parameters(req)
def test_url(self, urlstring, arguments): req = arguments.url(urlstring) assert req.status_code == 200, "The input YAML mut be a valid URL string"