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

django-import-export / django-import-export / 24130603793
100%

Build:
DEFAULT BRANCH: main
Ran 08 Apr 2026 10:28AM UTC
Jobs 3
Files 20
Run time 1min
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

08 Apr 2026 10:26AM UTC coverage: 99.622% (+0.002%) from 99.62%
24130603793

push

github

web-flow
Loading format libraries now checks `IMPORT_EXPORT_FORMATS` to improve performance (#2156)

* Add failing tests for get_default_formats() and get_binary_formats()

Tests for lazy format functions that will replace module-level
DEFAULT_FORMATS and BINARY_FORMATS constants. All 6 tests currently
fail with AttributeError since the functions don't exist yet.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Implement get_default_formats() and get_binary_formats() with lru_cache

Replace module-level DEFAULT_FORMATS and BINARY_FORMATS constants with
cached functions that respect the IMPORT_EXPORT_FORMATS setting. Add
_LazyFormatList wrapper for backward compatibility with existing imports.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat: replace DEFAULT_FORMATS/BINARY_FORMATS with lazy functions

Adds get_default_formats() and get_binary_formats() that evaluate lazily
on first call, respecting IMPORT_EXPORT_FORMATS setting and avoiding
expensive library imports at module load time.

Fixes #2149

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Update test references from DEFAULT_FORMATS to get_default_formats()

Replace removed DEFAULT_FORMATS constant with get_default_formats()
function call in test mixin files.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Update call sites to use get_default_formats() and get_binary_formats()

Replace references to removed DEFAULT_FORMATS and BINARY_FORMATS
constants in mixins.py, admin.py, and command_utils.py with calls to
the new lazy functions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: clear lru_cache in setUp to ensure test isolation

Other tests in the suite may populate the format caches before these
test classes run. Clearing in both setUp and tearDown ensures each test
starts with a fresh cache.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Add cha... (continued)

21 of 21 new or added lines in 4 files covered. (100.0%)

2373 of 2382 relevant lines covered (99.62%)

2.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 py312-django52 - 24130603793.1 08 Apr 2026 10:28AM UTC 20
99.62
GitHub Action Run
2 py312-django60 - 24130603793.2 08 Apr 2026 10:28AM UTC 20
99.62
GitHub Action Run
3 py312-djangomain - 24130603793.3 08 Apr 2026 10:28AM UTC 20
99.62
GitHub Action Run
Source Files on build 24130603793
  • Tree
  • List 20
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d2b19761 on github
  • Prev Build on main (#24090992981)
  • Next Build on main (#24130978937)
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