| 1 | """Create an test the count() method. |
| 2 | |
| 3 | We want to be able to count the amount of events really fast. |
| 4 | """ |
| 5 | |
| 6 | import pytest |
| 7 | |
| 8 | |
| 9 | @pytest.mark.parametrize( |
| 10 | ("calendar", "count"), |
| 11 | [ |
| 12 | ("issue_20_exdate_ignored", 7), |
| 13 | ("issue_148_ignored_exdate", 2), |
| 14 | ("issue_117_until_before_dtstart", 0), |
| 15 | ], |
| 16 | ) |
| 17 | def test_check_count_of_calendars(calendars, calendar, count): |
| 18 | """We count the events.""" |
| 19 | assert calendars[calendar].count() == count |