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

Add python tests for all portals that have a C test #1524

Merged
merged 13 commits into from
Jan 7, 2025

Conversation

swick
Copy link
Contributor

@swick swick commented Dec 4, 2024

Based on #1523

This PR adds tests using the pytest harness for every integration test that we have.

The C unit tests testdb and test-xdp-utils will stay.

The C integration tests remain for now to give us some time to make sure everything is working as intended and to improve logging and debugging for the pytest harness. The idea is to remove them eventually.

@swick swick force-pushed the wip/pytest-conversion branch 7 times, most recently from 1e63f82 to 76a9440 Compare December 4, 2024 20:36
@swick swick force-pushed the wip/pytest-conversion branch from 76a9440 to 7f0634a Compare December 5, 2024 17:51
@swick
Copy link
Contributor Author

swick commented Dec 5, 2024

Rebased on top of #1523 again.

@swick swick force-pushed the wip/pytest-conversion branch from 7f0634a to dba71c9 Compare December 11, 2024 17:41
@swick
Copy link
Contributor Author

swick commented Dec 11, 2024

Rebased on main. Should be ready to review.

@swick
Copy link
Contributor Author

swick commented Dec 12, 2024

/cc @whot @jadahl @GeorgesStavracas

swick added 13 commits January 7, 2025 18:06
The camera tests require a backend for access and lockdown, so add them
as well.
This will be useful for the notification portal and the permission store
tests because they require complex typed arguments and async calls.
The pytest harness already knows how to set up all the portal bits and
pieces so we can drop the shell script and the dbus service activation
configuration.
@swick swick force-pushed the wip/pytest-conversion branch from dba71c9 to 16bc688 Compare January 7, 2025 17:07
@swick
Copy link
Contributor Author

swick commented Jan 7, 2025

Rebased on main which now has the python settings test (#1538).

@GeorgesStavracas GeorgesStavracas added this to the 1.20 milestone Jan 7, 2025
@GeorgesStavracas GeorgesStavracas added this pull request to the merge queue Jan 7, 2025
@GeorgesStavracas GeorgesStavracas added the tests Test suite label Jan 7, 2025
Merged via the queue into flatpak:main with commit 4e0018b Jan 7, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Test suite
Projects
No open projects
Status: Triaged
Development

Successfully merging this pull request may close these issues.

2 participants