Skip to content

Conversation

@quis
Copy link
Member

@quis quis commented Jan 23, 2026

Before

========================= 4773 passed, 92 xfailed in 24.52s ==========================

After

========================= 4773 passed, 92 xfailed in 26.03s ==========================

Improvement

1.51s, or 6% faster

quis added 2 commits January 23, 2026 12:40
We can patch `max_rows` to trigger the same error with less data.

This makes our tests run faster (previously this single test could take
up to 5 seconds).

We already take a similar approach for testing the normal CSV upload
journey: https://github.com/alphagov/notifications-admin/blob/28feb377b5ff58784f33293f367464c107ad4657/tests/app/main/views/test_send.py#L4048-L4051
We only need to generate enough to show that what’s displayed on the
page is capped at 512.

Otherwise this is one of the slowest tests in our suite.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants