Skip to content

[FIX] Tests include testgres by right way through import#241

Merged
dmitry-lipetsk merged 1 commit intopostgrespro:masterfrom
dmitry-lipetsk:D20250425_001--fix-import-in-tests
Apr 25, 2025
Merged

[FIX] Tests include testgres by right way through import#241
dmitry-lipetsk merged 1 commit intopostgrespro:masterfrom
dmitry-lipetsk:D20250425_001--fix-import-in-tests

Conversation

@dmitry-lipetsk
Copy link
Collaborator

@dmitry-lipetsk dmitry-lipetsk commented Apr 25, 2025

When we do not have root __init__.py, tests must to import testgres through

import testgres

not through

from relative_path import testgres

It fixes a problem with this commit - 6e5e4f5

When we do not have root __init__.py tests must to import testgres through

"import testgres"

not through

"from <relative_path> import testgres"
@dmitry-lipetsk dmitry-lipetsk merged commit 1a662f1 into postgrespro:master Apr 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant