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

AttributeError: 'Calendar' object has no attribute '_set_event_state' #6

Open
Keucar opened this issue Jun 19, 2024 · 1 comment
Open

Comments

@Keucar
Copy link

Keucar commented Jun 19, 2024

Hello,

i try to build the Software.
O365 connection is O.K, .
The test creates a "Ad-hoc Meeting" , but i got some "AttributeError: 'Calendar' object has no attribute '_set_event_state'"

`======================================================================
ERROR: test__cancel_running_adhoc_meeting__deletes_event (test.ou_test.OutlookRoomRepositoryTest.test__cancel_running_adhoc_meeting__deletes_event)

Traceback (most recent call last):
File "/home/pi/meeting-room-display/test/ou_test.py", line 112, in test__cancel_running_adhoc_meeting__deletes_event
self.backend.calendar._set_event_state(EventStates.ADHOC)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Calendar' object has no attribute '_set_event_state'

======================================================================
ERROR: test__cancel_running_adhoc_meeting__deletes_event_not (test.ou_test.OutlookRoomRepositoryTest.test__cancel_running_adhoc_meeting__deletes_event_not)

Traceback (most recent call last):
File "/home/pi/meeting-room-display/test/ou_test.py", line 124, in test__cancel_running_adhoc_meeting__deletes_event_not
self.backend.calendar._set_event_state(EventStates.RUNNING)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Calendar' object has no attribute '_set_event_state'

======================================================================
ERROR: test__cancel_running_adhoc_meeting__without_running_event (test.ou_test.OutlookRoomRepositoryTest.test__cancel_running_adhoc_meeting__without_running_event)

Traceback (most recent call last):
File "/home/pi/meeting-room-display/test/ou_test.py", line 136, in test__cancel_running_adhoc_meeting__without_running_event
self.backend.calendar._set_event_state(EventStates.FUTURE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Calendar' object has no attribute '_set_event_state'

======================================================================
ERROR: test__fetch_calendar__raises_error (test.ou_test.OutlookRoomRepositoryTest.test__fetch_calendar__raises_error)

Traceback (most recent call last):
File "/home/pi/meeting-room-display/test/ou_test.py", line 48, in test__fetch_calendar__raises_error
self.assertRaises(outlook.AuthenticationFailureError, self.backend.fetch_calendar())
File "/usr/lib/python3.11/unittest/case.py", line 766, in assertRaises
return context.handle('assertRaises', args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/unittest/case.py", line 237, in handle
callable_obj(*args, **kwargs)
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: test__get_appointment__returns_future_event (test.ou_test.OutlookRoomRepositoryTest.test__get_appointment__returns_future_event)

Traceback (most recent call last):
File "/home/pi/meeting-room-display/test/ou_test.py", line 89, in test__get_appointment__returns_future_event
self.backend.calendar._set_event_state(EventStates.FUTURE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Calendar' object has no attribute '_set_event_state'

======================================================================
ERROR: test__get_appointment__returns_running_event (test.ou_test.OutlookRoomRepositoryTest.test__get_appointment__returns_running_event)

Traceback (most recent call last):
File "/home/pi/meeting-room-display/test/ou_test.py", line 66, in test__get_appointment__returns_running_event
self.backend.calendar._set_event_state(EventStates.RUNNING)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Calendar' object has no attribute '_set_event_state'

======================================================================
ERROR: test__get_appointment__returns_upcoming_event (test.ou_test.OutlookRoomRepositoryTest.test__get_appointment__returns_upcoming_event)

Traceback (most recent call last):
File "/home/pi/meeting-room-display/test/ou_test.py", line 77, in test__get_appointment__returns_upcoming_event
self.backend.calendar._set_event_state(EventStates.UPCOMING)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Calendar' object has no attribute '_set_event_state'

======================================================================
ERROR: test__get_appointment__with_elapsed_event__returns_none (test.ou_test.OutlookRoomRepositoryTest.test__get_appointment__with_elapsed_event__returns_none)

Traceback (most recent call last):
File "/home/pi/meeting-room-display/test/ou_test.py", line 57, in test__get_appointment__with_elapsed_event__returns_none
self.backend.calendar._set_event_state(EventStates.ELAPSED)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Calendar' object has no attribute '_set_event_state'

----------------------------------------------------------------------`

@richard-XV
Copy link
Contributor

Hello @Keucar,
thank you for reporting this. We will take a look into the issue.

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

No branches or pull requests

2 participants