o
    .j9                     @   sT   d Z ddlZdd Zejdddgdd	 Zejd
ddgdd Zdd ZdS )zTest the properties of events.    Nc                 C   s"   t | j }|d dksJ d S )NSUMMARYtest1)next	one_eventall)	calendarsevent r	   _/home/thesage/.local/lib/python3.10/site-packages/recurring_ical_events/test/test_properties.pytest_event_has_summary   s   r   	attributeDTSTARTDTENDc                    s4   | j  }t fdd|D }t|dksJ d S )Nc                 3   s    | ]}|  V  qd S )Nr	   ).0r   r   r	   r
   	<genexpr>   s    z=test_recurrent_events_change_start_and_end.<locals>.<genexpr>   )three_events_one_editedr   setlen)r   r   eventsvaluesr	   r   r
   *test_recurrent_events_change_start_and_end   s   
r   index      c                 C   sV   t | j }|d d j|d d j }|| d j|| d j }||ks)J d S )Nr   r   r   )listr   r   dt)r   r   r   	duration1	duration2r	   r	   r
   test_duration_stays_the_same   s   r    c                 C   s4   | j d}t|dksJ |d }d|v sJ dS )zuSome properties should be part of every event

    This is, even if they are not given in the event at the beginning.)i  r      r   r   r   N)discourse_no_dtendatr   )r   r   r   r	   r	   r
   test_attributes_are_created   s   r$   )__doc__pytestr   markparametrizer   r    r$   r	   r	   r	   r
   <module>   s    

