Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Refactor setup/teardown methods in the functional test setup

オープン
#593 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
testing

調査の方向性

Start by reading the functional test setup and the caldav-server-checker script, then trace where unique_calendar_ids and calendar.delete() and calendar creation are used. The issue proposes several possible approaches but does not define a specific outcome, so clarify the intended behavior and which server cases must be supported before assessing completion.

索引モデルが issue の本文から書いたものです。

説明

The current code is an absolute mess, difficult to get the head wrapped around it, and difficult to understand how the calendar(s) and objects are cleaned up or not. THe logic should be simplified.

Some thoughts:

  • There is an old "compatibility flag" unique_calendar_ids - do we need it still? We should look through those cases where it's needed, try to understand why it's needed and make checks for it in the caldav-server-checker script.
  • Some calendar servers does not support creating new calendars - and I did have an idea once-upon-a-time to allow the test to be able to access a "production calendar" and do stuff there without disturbing the test runs. Hence the need to be able to wipe "things known to have been made by the tests" from the test calendar. However, it's extremely bloat to run this logic after each and every test. Perhaps have local list of UIDs used per test and remove those before/after the test run?
  • calendar.delete() now has a workaround, on servers not supporting calendar deleting all objects will be deleted. It should probably be followed up with a flag to the calendar create method allowing it to create calendars without raising errors if the calendar already exiss. So that it's possible to run create and delete transparently on calendars not supporting it. At least given that the test calendar already exists.
主要言語
Python
スター
412
フォーク
113
平均マージ
1日 2時間
マージ済み PR(30日)
43

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

python-caldav/caldav のほかの issue

python-caldav/caldav の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。