Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def setUpClass(self):
self.loader = LocalLoader('./tests/repo/')
def setUpClass(self):
self.loader = LocalLoader('./tests/repo/')
self.app = Flask('unittests')
def setUpClass(self):
self.loader = LocalLoader(path.join('tests', 'repo'))
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