How to use the grlc.fileLoaders.LocalLoader function in grlc

To help you get started, we’ve selected a few grlc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github CLARIAH / grlc / tests / test_utils.py View on Github external
def setUpClass(self):
        self.loader = LocalLoader('./tests/repo/')
github CLARIAH / grlc / tests / test_gquery.py View on Github external
def setUpClass(self):
        self.loader = LocalLoader('./tests/repo/')
        self.app = Flask('unittests')
github CLARIAH / grlc / tests / test_loaders.py View on Github external
def setUpClass(self):
        self.loader = LocalLoader(path.join('tests', 'repo'))
github CLARIAH / grlc / src / utils.py View on Github external
def getLoader(user, repo, sha=None, prov=None):
    """Build a fileLoader (LocalLoader or GithubLoader) for the given repository."""
    if user is None and repo is None:
        loader = LocalLoader()
    else:
        loader = GithubLoader(user, repo, sha, prov)
    return loader