-
Notifications
You must be signed in to change notification settings - Fork 0
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
Bug fixing and moving to pytest plugins #62
Conversation
# Conflicts: # exasol/python_extension_common/deployment/language_container_deployer.py # exasol/python_extension_common/deployment/language_container_deployer_cli.py # pyproject.toml # test/unit/deployment/test_language_container_deployer.py # test/unit/deployment/test_language_container_deployer_cli.py
def test_language_container_builder(itde: config.TestConfig, | ||
connection_factory: Callable[[config.Exasol], ExaConnection], | ||
tmp_path): | ||
def test_language_container_builder(deployer_factory, db_schema, language_alias, tmp_path): |
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.
tmp_path
is not used anywhere here. Can it be removed?
@@ -28,41 +20,34 @@ def test_prepare_flavor(tmp_path): | |||
assert any(container_builder.wheel_target.iterdir()) | |||
|
|||
|
|||
def test_prepare_flavor_extra(tmp_path): | |||
def test_prepare_flavor_extra(tmp_path, language_alias): |
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.
tmp_path is not used anywhere here. Can it be removed?
|
||
|
||
def test_prepare_flavor(tmp_path): | ||
def test_prepare_flavor(tmp_path, language_alias): |
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.
tmp_path is not used anywhere here. Can it be removed?
db_schema, | ||
language_alias): | ||
@contextmanager | ||
def create_deployer(create_test_schema: bool = 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.
The meaning of the boolean parameter is not very obvious reading the code of the tests below. Would it be better to use a **argv
here, so that clients are forced to use deployed_factor(create_schema=True)
?
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.
**kwaargs
won't make it easier to understand the meaning of the parameter by looking at the method signature. I will change all calls to include the parameter name.
closes #58
closes #35
closes #36