mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-12 23:27:22 +00:00
23 lines
553 B
Python
23 lines
553 B
Python
|
|
from datetime import datetime
|
|
|
|
import pytest
|
|
from pytz import utc
|
|
|
|
from indico.modules.vc.models.vc_rooms import VCRoom, VCRoomEventAssociation, VCRoomStatus
|
|
|
|
|
|
@pytest.fixture
|
|
def create_dummy_room(db, dummy_user):
|
|
"""Returns a callable which lets you create dummy Zoom room occurrences"""
|
|
pass
|
|
|
|
|
|
def test_room_cleanup(create_event, create_dummy_room, freeze_time, db):
|
|
"""Test that 'old' Zoom rooms are correctly detected"""
|
|
freeze_time(datetime(2015, 2, 1))
|
|
|
|
pass
|
|
|
|
assert {r.id for r in find_old_zoom_rooms(180)} == {2, 3, 5}
|