- Notifications
You must be signed in to change notification settings - Fork35
Test refactoring#236
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
dmitry-lipetsk merged 7 commits intopostgrespro:masterfromdmitry-lipetsk:D20250406_001--test_refactoringApr 7, 2025
Uh oh!
There was an error while loading.Please reload this page.
Merged
Test refactoring#236
Changes from1 commit
Commits
Show all changes
7 commits Select commitHold shift + click to select a range
cd0635e
TestUtils is added
dmitry-lipetsk2ef2e00
TestTestgresCommon::test_node_repr is added
dmitry-lipetskd7f704d
test_get_pg_config2 moved to TestUtils
dmitry-lipetskcd80617
TestTestgresCommon.test_custom_init is added
dmitry-lipetsk88ca53d
TestConfig is added
dmitry-lipetsk18e2af3
Code style [simplification]
dmitry-lipetsk820fd78
test_testgres_local.py is updated [normalization]
dmitry-lipetskFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
NextNext commit
TestUtils is added
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commitcd0635e917cf17ea0b10f9be241ad1529028c380
There are no files selected for viewing
12 changes: 1 addition & 11 deletionstests/test_testgres_local.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletionstests/test_utils.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from ..testgres.utils import parse_pg_version | ||
class TestUtils: | ||
def test_parse_pg_version(self): | ||
# Linux Mint | ||
assert parse_pg_version("postgres (PostgreSQL) 15.5 (Ubuntu 15.5-1.pgdg22.04+1)") == "15.5" | ||
# Linux Ubuntu | ||
assert parse_pg_version("postgres (PostgreSQL) 12.17") == "12.17" | ||
# Windows | ||
assert parse_pg_version("postgres (PostgreSQL) 11.4") == "11.4" | ||
# Macos | ||
assert parse_pg_version("postgres (PostgreSQL) 14.9 (Homebrew)") == "14.9" |
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.