Ran
|
Jobs
8
|
Files
203
|
Run time
–
|
Badge
Embed ▾
README BADGES
|
travis-ci
<a href="https://github.com/pennersr/django-allauth/commit/<a class=hub.com/pennersr/django-allauth/commit/af687e31efaf6aea598d9cd121d0070c29f89849">af687e31e<a href="https://github.com/pennersr/django-allauth/commit/af687e31efaf6aea598d9cd121d0070c29f89849">">Don&#39;t call self.load() from registry.register() to avoid recursion. Presently registry.load() imports provider modules, and each module calls registry.register(), which itself calls self.load(). The result is that self.load() attempts to import the entire list of modules once for each provider module that calls registry.register(). The recursion doesn&#39;t hurt because already-imported modules don&#39;t run again, but it would be better to avoid it, and there&#39;s no reason for registry.register() to call self.load() commit </a><a class="double-link" href="https://github.com/pennersr/django-allauth/commit/<a class="double-link" href="https://github.com/pennersr/django-allauth/commit/b19fad7921a7a0106c7a93f6d684d86471750364">b19fad792</a>">b19fad792</a><a href="https://github.com/pennersr/django-allauth/commit/af687e31efaf6aea598d9cd121d0070c29f89849"> Author: Aron Griffis <aron@arongriffis.com> Date: Mon Mar 3 19:00:44 2014 -0500 Don't diff --git a/allauth/socialaccount/providers/__init__.py b/allauth/socialaccount/providers/__init__.py index fde92d1..d30141a 100644 --- a/allauth/socialaccount/providers/__init__.py +++ b/allauth/socialaccount/providers/__init__.py @@ -11,7 +11,6 @@ class ProviderRegistry(object): return self.provider_map.values() def register(self, cls): - self.load() self.provider_map[cls.id] = cls() def by_id(self, id):
3995 of 4557 relevant lines covered (87.67%)
5.03 hits per line
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 465.1 (DJANGO=Django==1.4.3) | 203 |
87.56 |
Travis Job 465.1 | |
2 | 465.2 (DJANGO=Django==1.5) | 101 |
49.88 |
Travis Job 465.2 | |
3 | 465.3 (DJANGO="git+git://github.com/django/django.git@stable/1.6.x#egg=django") | 203 |
87.07 |
Travis Job 465.3 | |
4 | 465.4 (DJANGO=Django==1.4.3) | 203 |
87.54 |
Travis Job 465.4 | |
5 | 465.5 (DJANGO=Django==1.5) | 101 |
49.88 |
Travis Job 465.5 | |
6 | 465.6 (DJANGO="git+git://github.com/django/django.git@stable/1.6.x#egg=django") | 203 |
87.05 |
Travis Job 465.6 | |
7 | 465.7 (DJANGO=Django==1.5) | 101 |
49.98 |
Travis Job 465.7 | |
8 | 465.8 (DJANGO="git+git://github.com/django/django.git@stable/1.6.x#egg=django") | 203 |
86.92 |
Travis Job 465.8 |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|