Skip to content

Conversation

@ckunki
Copy link
Contributor

@ckunki ckunki commented Sep 24, 2025

Closes #260

metavar="DB_SCHEMA",
type=str,
help="Database schema for installing UDFs of Exasol extensions",
scs_key=CKey.db_schema,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This had been forgotten in the last PR


@property
def arg_name(self) -> str:
return self._args[0]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if *args is empty?
Default value here, like ""?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or maybe check in constructor already that *args is not empty....

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was lazy. You are right.
See next push adding a fix.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.
Annoying but excellent finding.
See latest push addressing your findings.

envvar="KWARG_ENVVAR",
metavar="NAME",
type=str,
default="Robert",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Badesalz?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jaja der Robert.... :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I know some Badesalz but "Robert" was unknown to me. 🙂
I just picked a random name.

Represents a CLI argument for the SCS command.
"""

def __init__(self, name: str, scs_key: CKey | None = None, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better

@ckunki ckunki temporarily deployed to text-ai-prerelease September 25, 2025 14:09 — with GitHub Actions Inactive
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
2 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@ckunki ckunki merged commit 6f22ca9 into main Sep 25, 2025
25 of 26 checks passed
@ckunki ckunki deleted the refactoring/260-Added_unit_tests_for_CLI_param_wrappers branch September 25, 2025 15:08
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.

Add unit tests for CLI param wrappers

3 participants