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

Datasource interface tests #361

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

PietroPasotti
Copy link
Contributor

@PietroPasotti PietroPasotti commented Dec 2, 2024

Interface test fixture for the grafana_datasource interface tests.

See: canonical/charm-relation-interfaces#204

to test:
tox -e interface

@PietroPasotti PietroPasotti changed the title Datasource interface tests [DO NOT MERGE] Datasource interface tests Dec 2, 2024
@PietroPasotti PietroPasotti marked this pull request as ready for review December 2, 2024 09:26
@PietroPasotti PietroPasotti requested a review from a team as a code owner December 2, 2024 09:26
@PietroPasotti PietroPasotti changed the title [DO NOT MERGE] Datasource interface tests Datasource interface tests Dec 2, 2024
tests/scenario/conftest.py Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

Practically, scenario tests and interface tests are all unit tests.
This PR duplicates the code for the patches we apply.
Can we move all this under unit instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not without one more PR to charm-relation-interfaces, because by default, it's looking for interface tests under tests/interface.

@PietroPasotti PietroPasotti requested a review from sed-i December 3, 2024 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants