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

Test refactoring #450

Merged
merged 3 commits into from
Nov 17, 2024
Merged

Test refactoring #450

merged 3 commits into from
Nov 17, 2024

Conversation

tobixen
Copy link
Member

@tobixen tobixen commented Nov 17, 2024

Move Xandikos/Radicale setup/teardown

Test framework has been refactored a bit. Code for setting up and rigging down xandikos/radicale servers have been moved from tests/test_caldav.py to tests/conf.py. This allows for:

  • Adding code (including system calls or remote API calls) for Setting up and tearing down calendar servers in conf_private.py
  • Creating a local xandikos or radicale server in the tests.client-method, which is also used in the examples-section.
  • Allows offline testing of my upcoming check_server_compatibility-script

Add a text identifier to each caldav server entry

Probably not relevant for many, but I do have a tests/conf_private.py
filled up with various servers, so it would be nice to add "friendly"
names to identify them. This also makes the name of the test class
more readable.

Test framework has been refactored a bit. Code for setting up and rigging down xandikos/radicale servers have been moved from `tests/test_caldav.py` to `tests/conf.py`.  This allows for:
* Adding code (including system calls or remote API calls) for Setting up and tearing down calendar servers in `conf_private.py`
    * Creating a local xandikos or radicale server in the `tests.client`-method, which is also used in the `examples`-section.
    * Allows offline testing of my upcoming `check_server_compatibility`-script
@tobixen tobixen force-pushed the test_refactoring branch 3 times, most recently from 6255a3f to 65b483e Compare November 17, 2024 08:26
Probably not relevant for many, but I do have a tests/conf_private.py
filled up with various servers, so it would be nice to add "friendly"
names to identify them
@tobixen tobixen merged commit c5899b5 into master Nov 17, 2024
8 checks passed
@tobixen tobixen deleted the test_refactoring branch November 21, 2024 07:21
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.

1 participant