• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PyCQA / pylint-django / 452
0%

Build:
DEFAULT BRANCH: master
Ran 25 Jul 2018 06:36AM UTC
Jobs 11
Files 17
Run time 8min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
452

push

travis-ci

atodorov
Be more strict when infering ForeignKey models specified as string

The failing `func_noerror_foreignkeys` was caused by pylint_django
trying to infer a ForeignKey('Author') field by looking at the
astroid cache. In this case there was an Author model already
defined in `func_noerror_duplicate_except_doesnotexist` which
was inferred and of course this model didn't have the `author_name`
field hence we got a no-member error.

This commit tries to restrict where we load these models from
and also takes into account the quirk that Django allows specifying
'appname.Model' instead of 'path.to.python.module.models.Model'.

9 of 9 new or added lines in 1 file covered. (100.0%)

570 of 655 relevant lines covered (87.02%)

6.08 hits per line

Jobs
ID Job ID Ran Files Coverage
1 452.1 (TOXENV=django_not_installed) 25 Jul 2018 06:36AM UTC 0
Travis Job 452.1
2 452.2 (TOXENV=django_is_installed) 25 Jul 2018 06:39AM UTC 0
Travis Job 452.2
3 452.3 (DJANGO=2.0) 25 Jul 2018 06:41AM UTC 0
86.91
Travis Job 452.3
4 452.4 (DJANGO=2.0) 25 Jul 2018 06:41AM UTC 0
86.91
Travis Job 452.4
5 452.5 (DJANGO=2.0) 25 Jul 2018 06:41AM UTC 0
86.91
Travis Job 452.5
6 452.6 (DJANGO=2.0) 25 Jul 2018 06:43AM UTC 0
86.87
Travis Job 452.6
7 452.7 (DJANGO=1.11) 25 Jul 2018 06:43AM UTC 0
86.91
Travis Job 452.7
8 452.8 (DJANGO=1.11) 25 Jul 2018 06:43AM UTC 0
86.91
Travis Job 452.8
9 452.9 (DJANGO=1.11) 25 Jul 2018 06:44AM UTC 0
86.91
Travis Job 452.9
10 452.10 (TOXENV=flake8) 25 Jul 2018 06:43AM UTC 0
Travis Job 452.10
11 452.11 (TOXENV=readme) 25 Jul 2018 06:44AM UTC 0
Travis Job 452.11
Source Files on build 452
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #452
  • 7a778879 on github
  • Prev Build on master (#445)
  • Next Build on master (#453)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc