Skip to content
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

Merged
merged 35 commits into from
Sep 20, 2024
Merged

Bug fixing and moving to pytest plugins #62

merged 35 commits into from
Sep 20, 2024

Conversation

ahsimb
Copy link
Collaborator

@ahsimb ahsimb commented Sep 19, 2024

closes #58
closes #35
closes #36

# 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
@ahsimb ahsimb self-assigned this Sep 19, 2024
@ahsimb ahsimb added the bug Unwanted / harmful behavior label Sep 19, 2024
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):
Copy link
Contributor

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):
Copy link
Contributor

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):
Copy link
Contributor

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):
Copy link
Contributor

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)?

Copy link
Collaborator Author

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.

tomuben
tomuben previously approved these changes Sep 20, 2024
@ahsimb ahsimb merged commit 50385b5 into main Sep 20, 2024
10 checks passed
@ahsimb ahsimb deleted the bug/58_35_36 branch September 20, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unwanted / harmful behavior
Projects
None yet
2 participants