Page MenuHomePhabricator

Data too long for column 'suggested_company_name'
Closed, ResolvedPublicBUG REPORT

Description

Problem

When running tests, the Faker library sometimes creates a suggested company name that has more characters than are permitted in the database, causing our tests to fail randomly.

Event Timeline

jsn.sherman removed Scardenasmolinar as the assignee of this task.
jsn.sherman moved this task from Done to Ready on the The-Wikipedia-Library (Kanban) board.
jsn.sherman added a subscriber: jsn.sherman.

Unfortunately, this is still popping up.
I think we could just change to a less pretty provider:
https://faker.readthedocs.io/en/master/providers/faker.providers.python.html?highlight=pystr#faker.providers.python.Provider.pystr
that provides a max_length option and remove the workaround in the example_data script