-
-
Notifications
You must be signed in to change notification settings - Fork 252
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
Enhance version_path_separator behaviour by adding a newline option #1510
Conversation
alembic/testing/assertions.py
Outdated
@@ -98,8 +101,8 @@ def expect_raises(except_cls, check_context=True): | |||
return _expect_raises(except_cls, check_context=check_context) | |||
|
|||
|
|||
def expect_raises_message(except_cls, msg, check_context=True): | |||
return _expect_raises(except_cls, msg=msg, check_context=check_context) | |||
def expect_raises_message(except_cls, msg, check_context=True, text_exact=False): |
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.
This function was incorrectly used for text exact checking for ValueError messages. The raw message was assumed to be a regexp but it was a simple string. So it was passed by coincidence.
Thanks, looks ok! Will run the pipeline |
That error seems to be caused by the mypy update. Will fix elsewhere |
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.
OK, this is sqla-tester setting up my work on behalf of CaselIT to try to get revision 00a1a04 of this pull request into gerrit so we can run tests and reviews and stuff
New Gerrit review created for change 00a1a04: https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/5417 |
References: sqlalchemy#1509
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.
OK, this is sqla-tester setting up my work on behalf of CaselIT to try to get revision a4d2a1e of this pull request into gerrit so we can run tests and reviews and stuff
Patchset a4d2a1e added to existing Gerrit review https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/5417 |
@CaselIT should I fix those issues from the Gerrit review? |
if you run black it should fix them for you |
References: sqlalchemy#1509
I've just run it with "tox e -- black ." |
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.
OK, this is sqla-tester setting up my work on behalf of CaselIT to try to get revision b1465ec of this pull request into gerrit so we can run tests and reviews and stuff
Patchset b1465ec added to existing Gerrit review https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/5417 |
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.
Hi, this is sqla-tester and I see you've pinged me for review. However, user pristupa is not authorized to initiate CI jobs. Please wait for a project member to do this!
Kust waiting for mike to take a look. If you have time you could add a changelog. See example here https://github.com/sqlalchemy/alembic/tree/34dbe6afa27db5288629e1ec6fe5fbcd675a3b2f/docs/build/unreleased |
References: sqlalchemy#1509
oh thank you, didn't notice that one |
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.
OK, this is sqla-tester setting up my work on behalf of CaselIT to try to get revision 6155da7 of this pull request into gerrit so we can run tests and reviews and stuff
Patchset 6155da7 added to existing Gerrit review https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/5417 |
Michael Bayer (zzzeek) wrote: ok we need a changelog note here, do we have any tests for these version path seps? View this in Gerrit at https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/5417 |
Federico Caselli (CaselIT) wrote: it has both. maybe you looked an old version? View this in Gerrit at https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/5417 |
Michael Bayer (zzzeek) wrote: gerrit must have bounced me into an older version View this in Gerrit at https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/5417 |
Gerrit review https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/5417 has been merged. Congratulations! :) |
Description
version_path_separator now consists a new option "newline" which allows you to specify multiple version locations across multiple lines like this:
Checklist
This pull request is:
must include a complete example of the issue. one line code fixes without an
issue and demonstration will not be accepted.
Fixes: #<issue number>
in the commit messageinclude a complete example of how the feature would look.
Fixes: #<issue number>
in the commit messageHave a nice day!