8000 GitHub - luto/allauthcrash
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

luto/allauthcrash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

allauth template crash demo

virtualenv venv --python python3
source venv/bin/activate
pip install -r requirements.txt
cd allauthcrash/
py.test --fail-on-template-vars

yields

self = <pytest_django.plugin._fail_for_invalid_template_variable.<locals>.InvalidVarException object at 0x7f1d57ba2eb8>, var = <Variable: 'scope'>

    def __mod__(self, var):
        """Handle TEMPLATE_STRING_IF_INVALID % var."""
        origin = self._get_origin()
        if origin:
            msg = "Undefined template variable '%s' in '%s'" % (var, origin)
        else:
            msg = "Undefined template variable '%s'" % var
        if self.fail:
>           pytest.fail(msg)
E           Failed: Undefined template variable 'scope' in '/tmp/allauthcrash/venv/lib/python3.7/site-packages/allauth/templates/socialaccount/snippets/provider_list.html'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0