-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Simplify migration tests #215
Conversation
6dfda45
to
18f875e
Compare
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.
I wouldn't qualify this as a simplification but it looks great :-) I like it.
18f875e
to
e99fa4a
Compare
|
||
env = {**os.environ, "PGSERVICEFILE": "tests/migration/pgservice.ini"} |
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.
@elemoine This way, we don't even need to name the fixture
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.
I checked with 3.6 just in case
Python 3.6.9 (default, Dec 14 2019, 18:23:02)
[GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.33.8)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> {**{1: 2}, 3:4}
{1: 2, 3: 4}
>>> {**{3: 2}, 3:4}
{3: 4}
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.
I keep forgetting about this syntax. Looks good.
0ddb5a7
to
30257d6
Compare
Dammit wrong button sorry. |
No ticket
Ping @elemoine : Starting from your work, I simplified the process a bit. It does the same, but a bit differently. You may or may not like 100%, we can discuss any part you think is still improvable, as usual :)
Successful PR Checklist: