예제 #1
0
    def var(self):
        arguments = src.io.arguments.Arguments()

        configurations = config.Config()
        urlstring = configurations.urlstring

        req = arguments.url(urlstring)

        return arguments.parameters(req)
예제 #2
0
    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"
예제 #3
0
    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)
예제 #4
0
 def test_url(self, urlstring, arguments):
     req = arguments.url(urlstring)
     assert req.status_code == 200, "The input YAML mut be a valid URL string"