-
Notifications
You must be signed in to change notification settings - Fork 487
fix: Add storages name validation #1457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
assigning @janbuchar as @Pijukatel is off for this week |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I'm wondering, shouldn't we add this new enforcement on this level to https://crawlee.dev/python/docs/upgrading/upgrading-to-v1?
@pytest.mark.parametrize( | ||
('name', 'is_valid'), | ||
[ | ||
pytest.param('F', True, id='single-char'), | ||
pytest.param('7', True, id='single-digit'), | ||
pytest.param('FtghdfseySds', True, id='mixed-case'), | ||
pytest.param('125673450', True, id='all-digits'), | ||
pytest.param('Ft2134Sfe0O1hf', True, id='mixed-alphanumeric'), | ||
pytest.param('name-with-dashes', True, id='dashes'), | ||
pytest.param('1-value', True, id='number start'), | ||
pytest.param('value-1', True, id='number end'), | ||
pytest.param('test-1-value', True, id='number middle'), | ||
pytest.param('test-------value', True, id='multiple-dashes'), | ||
pytest.param('test-VALUES-test', True, id='multiple-cases'), | ||
pytest.param('name_with_underscores', False, id='underscores'), | ||
pytest.param('name with spaces', False, id='spaces'), | ||
pytest.param('-test', False, id='dashes start'), | ||
pytest.param('test-', False, id='dashes end'), | ||
], | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this also correspond to the naming constraints in SqlStorageClient
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep.
Co-authored-by: Vlada Dusek <[email protected]>
Co-authored-by: Vlada Dusek <[email protected]>
Description
Issues
Testing