diff --git a/common/tests/snapshots/snap_test_qrcode_service.py b/common/tests/snapshots/snap_test_qrcode_service.py index 81669f4d..d965b120 100644 --- a/common/tests/snapshots/snap_test_qrcode_service.py +++ b/common/tests/snapshots/snap_test_qrcode_service.py @@ -6,26 +6,26 @@ snapshots = Snapshot() -snapshots[ - "test_qrcode_creation[QRCodeFileFormatEnum.PNG] 1" -] = 'b\'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHDR\\x00\\x00\\x01\\x9a\\x00\\x00\\x01\\x9a\\x01\\x00\\x00\\x00\\x00\\x1e}\\xb8\\xce\\x00\\x00\\x02\\xfaIDATx\\x9c\\xed\\x9cQ\\x8e\\xa30\\x0c\\x86?/H}\\x0c\\xd2\\x1c`\\x8e\\x027[\\xcd\\xcd\\xe0(=\\xc0J\\xf0X)\\xc8\\xfb\\xe0$\\xb4\\x9d\\xa7\\xd9\\xee\\x90N1\\x0f-\\x85|\\x1aGX\\xb1\\xfd\\x9b\\x8c(_>\\xa6__g\\xc0!\\x87\\x1cr\\xc8!\\x87\\x1czMH\\xd2\\xd1\\xc2$"L\\x1d\\x88t\\xab]\\x85%\\x0f\\x18\\xaa\\x98\\xe7\\xd0\\x8ePk_\\xfd\\x08\\xb0\\xbc\\xd9/\\xe9\\xcf\\x82\\xb2\\x9cJ\\xda\\xd9D\\xbb\\xb1\\xb7y\\x0eU\\x83\\x96\\xb4\\x00\\xc8@\\xa3@\\xa32\\x84KZ7\\x00\\xb6\\xb3\\x1f3\\\'\\x87\\xfe\\x0b\\xd4\\xcf\\xab@\\xb8\\x88~t\\xa0:\\x83\\x0c\\xdf\\xf2\\x97\\x1czJ\\xa8\\xbd\\xbf0uM\\x04\\x1a\\x95~^\\x11\\xc2E\\x94\\xa5\\x96y\\x0eU\\x83\\x82\\xaa\\x8e\\x90\\xd7\\x08V\\x01\\x1a\\xd51\\\'\\x13\\xaa\\x1a\\xeb\\x99\\xe7\\xd0\\xde\\xd0$""\\x1d`)\\xc4rRXZ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\x00\\x00\\x00IEND\\xaeB`\\x82'" +snapshots["test_qrcode_creation[QRCodeFileFormatEnum.PNG] 2"] = ( + "b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHDR\\x00\\x00\\x01\\x9a\\x00\\x00\\x01\\x9a\\x01\\x00\\x00\\x00\\x00\\x1e}\\xb8\\xce\\x00\\x00\\x03 IDATx\\x9c\\xed\\x9c[\\x8a\\xdbJ\\x10\\x86\\xbf\\x8a\\x04~\\x94\\xc0\\x0b\\x98\\xa5\\xb4w\\x90%eM\\xd9\\x81\\xb4\\x14/`@z4\\xb4\\xf8\\xf3\\xd0\\x179\\xe3\\x03\\x87\\xc4A\\x9a\\x91K/\\xb6\\xe4\\xfep5.\\xea\\xde6\\xf1\\xc7\\xd7\\xf8\\xed\\xcf\\x19p\\xc8!\\x87\\x1cr\\xc8!\\x87\\x8e\\tY\\xbeZ\\x18\\xcd\\x8c\\xb1\\x07\\xb3~IOa.\\x0b.\\xbb\\x88\\xe7\\xd0\\x86P\\x9b^\\xc2\\x000\\x9f!L=\\x06\\x86\\x98O5\\xecl\"\\x00\\xb6\\xb5x\\x0e\\xed\\x06\\xcd\\xd9\\x00\\x98\\xbdI\\x84\\xa9\\x91]\\xba[\\xb6\\x1b\\x00\\xeb\\xbb/\\xb3\\'\\x87\\xfe\\x06j\\x1f\\x9e\\xcc\\x86\\xe0f\\x1a\\xfbw\\xc4|\\xc6\\xc2\\xcf\\xbd\\xc4shs\\xe8Q#\\x00\\x0bC#\\x0b\\xd3\\x82\\xd1\\xddL\\xcc\\xff\\xe0\\x9b\\x1c\\xfaZP\\'i\\x00\\x08S#\\r,\\x064\\xd2P\\x82\\tIq?\\xf1\\x1c\\xda\\x1a\\x1a\\xcd\\xcc\\xac\\xcf\\x0f\\xed2\\x9f\\x04s\\x8b\\xfd\\x98\\xc0.\\xd4\\xacc\\x1f\\xf1\\x1c\\xda\\xdak<\\x96\\xb2\\x97\\xec+\\xc6\\xbeA\\x1f\\x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4)\\xec\\xad\\xc5shs\\xe8N#\\xc4\\xdc\\x93\\xca\\x0ea\\x02\\x8d\\xfd{+\\xe6sL\\xda\\x10\\x86\\xa5\\xb54\\xc5\\xff\\xc9\\xf7\\xe4\\xd03P\\x9d\\xa1J\\xb1#6\\xf6\\xef\\xadFk\\xa2\\xd1\\x81\\xa5\\xa2\\xc4\\x00\\xc6|\\x96\\x9f\\xd7x\\x15h=\\xd3\\xa5a>\\xa5\\xa3\\x1a9#\\xbd\\x9a\\xc1\\xdc\\x02,\\x96\\x93\\xd1/\\xb1\\'\\x87\\x9e\\xaeP\\xad\\xdd\\xf0\\\\\\xb0\\x92\\x1ez^\\x9ek\\x1c\\x1e\\xba\\x9f\\xb3\\\\\\xdb\\x9e9\\xcd\\x88uf\\x02V\\xddp\\x8d84\\xf4\\x1fg\\xbaN9\\xcd\\x08\\xd76\\x9d\\xe0\\x81n\\xfa-\\xd9\\xf8\\xe4{r\\xe8\\x19\\xe8A#\\xc2\\xcfsI3\\x10\\x96B\\x88t\\xf2\\x0f\\xef\\x86\\xbf\\x00\\xf41\\x8e\\xc8\\xbe\\xe2\\xee\\xb6t=\\xbc\\xaf\\xf1\\x1aP\\xedk\\x00kP\\t\\xb9\\xfd]\\x8ej\\xd49}\\xd7\\x88\\xa3C\\xa6\\xff_\\xf3\\xf1\\xf2\\x7f&s\\xc8!\\x87\\x1cr\\xc8!\\x87\\x00~\\x019aww;\\xc8b#\\x00\\x00\\x00\\x00IEND\\xaeB`\\x82'" +) -snapshots[ - "test_qrcode_creation[QRCodeFileFormatEnum.PNG] 3" -] = "b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHDR\\x00\\x00\\x01\\x9a\\x00\\x00\\x01\\x9a\\x01\\x00\\x00\\x00\\x00\\x1e}\\xb8\\xce\\x00\\x00\\x03\\x1fIDATx\\x9c\\xed\\x9cA\\x8e\\xdb8\\x10E_\\r\\x05xI\\x01}\\x80\\x1c\\x85\\xbe\\xc1\\x1c)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b1\\xf4\\xde\\x95\\x13<\\x10\\xa75\\xb0\\x1ck\\x9eC\\x87C?yD\\xfa\\xde\\xcd\\x1a\\xfb\\x7fZ\\xbb+\\x97\\xf3\\xe2\\x88m\\x8f\\xfe\\x83\\xcf\\xc9\\xa1{\\xa0\\xdb\\n\'' +snapshots["test_qrcode_creation[QRCodeFileFormatEnum.SVG] 1"] = ( + 'b\'\\n\'' +) -snapshots[ - "test_qrcode_creation[QRCodeFileFormatEnum.SVG] 2" -] = 'b\'\\n\'' +snapshots["test_qrcode_creation[QRCodeFileFormatEnum.SVG] 2"] = ( + 'b\'\\n\'' +) -snapshots[ - "test_qrcode_creation[QRCodeFileFormatEnum.SVG] 3" -] = 'b\'\\n\'' +snapshots["test_qrcode_creation[QRCodeFileFormatEnum.SVG] 3"] = ( + 'b\'\\n\'' +) diff --git a/events/notifications.py b/events/notifications.py index 7cc4a510..7cd39e6b 100644 --- a/events/notifications.py +++ b/events/notifications.py @@ -39,10 +39,14 @@ project = ProjectFactory.build(pk=uuid4(), year=2020) event = EventFactory.build(pk=uuid4(), project=project) event_group = EventGroupFactory.build(pk=uuid4(), project=project) -event_with_event_group = EventFactory.build(pk=uuid4(), project=project, event_group=event_group) +event_with_event_group = EventFactory.build( + pk=uuid4(), project=project, event_group=event_group +) venue = VenueFactory.build(pk=uuid4(), project=project) guardian = GuardianFactory.build(pk=uuid4()) -child = ChildWithGuardianFactory.build(pk=uuid4(), relationship__guardian=guardian, project=project) +child = ChildWithGuardianFactory.build( + pk=uuid4(), relationship__guardian=guardian, project=project +) occurrence = OccurrenceFactory.build(pk=uuid4(), event=event, venue=venue) enrolment = EnrolmentFactory.build(pk=uuid4(), occurrence=occurrence, child=child) unsubscribe_url = "https://kukkuu-ui-domain/fi/profile/subscriptions?authToken=abc123" diff --git a/events/tests/test_api.py b/events/tests/test_api.py index ce113787..2e9c3175 100644 --- a/events/tests/test_api.py +++ b/events/tests/test_api.py @@ -915,9 +915,9 @@ def test_enrol_limit_reached( enrolled_amount + 1, time=timezone.now(), event__published_at=timezone.now(), - event__ticket_system=Event.TICKETMASTER - if use_ticket_system_passwords - else Event.INTERNAL, + event__ticket_system=( + Event.TICKETMASTER if use_ticket_system_passwords else Event.INTERNAL + ), ) for i in range(enrolled_amount): # Previous enrolments have been with TicketSystemPasswords @@ -1672,19 +1672,21 @@ def test_events_and_event_groups_query_upcoming_filter( time=not_visible, event__name="Not visible", event__published_at=not_visible, - event__event_group=EventGroupFactory( - name="Not visible", published_at=not_visible - ) - if has_event_group - else None, + event__event_group=( + EventGroupFactory(name="Not visible", published_at=not_visible) + if has_event_group + else None + ), ) OccurrenceFactory.create( time=future, event__name="In the future", event__published_at=now(), - event__event_group=EventGroupFactory(name="In the future", published_at=now()) - if has_event_group - else None, + event__event_group=( + EventGroupFactory(name="In the future", published_at=now()) + if has_event_group + else None + ), ) executed = guardian_api_client.execute( diff --git a/importers/tests/snapshots/snap_test_notification_importer.py b/importers/tests/snapshots/snap_test_notification_importer.py index 41bd0999..5b3b1903 100644 --- a/importers/tests/snapshots/snap_test_notification_importer.py +++ b/importers/tests/snapshots/snap_test_notification_importer.py @@ -16,6 +16,6 @@ ] = """event_published|event_published fi original subject|event_published en original subject|event_published sv original subject|event_published fi original body_text|event_published en original body_text|event_published sv original body_text||| occurrence_enrolment|occurrence_enrolment fi updated subject|occurrence_enrolment en updated subject|occurrence_enrolment sv updated subject|occurrence_enrolment fi updated body_text|occurrence_enrolment en updated body_text|occurrence_enrolment sv updated body_text|||""" -snapshots[ - "test_update_notifications 1" -] = "event_published|event_published fi updated subject|event_published en updated subject|event_published sv updated subject|event_published fi updated body_text|event_published en updated body_text|event_published sv updated body_text|||" +snapshots["test_update_notifications 1"] = ( + "event_published|event_published fi updated subject|event_published en updated subject|event_published sv updated subject|event_published fi updated body_text|event_published en updated body_text|event_published sv updated body_text|||" +) diff --git a/subscriptions/notifications.py b/subscriptions/notifications.py index 5ca7137c..a74df634 100644 --- a/subscriptions/notifications.py +++ b/subscriptions/notifications.py @@ -24,7 +24,9 @@ event = EventFactory.build(pk=uuid4(), project=project) venue = VenueFactory.build(pk=uuid4(), project=project) guardian = GuardianFactory.build(pk=uuid4()) -child = ChildWithGuardianFactory.build(pk=uuid4(), relationship__guardian=guardian, project=project) +child = ChildWithGuardianFactory.build( + pk=uuid4(), relationship__guardian=guardian, project=project +) occurrence = OccurrenceFactory.build(pk=uuid4(), event=event, venue=venue) subscription = FreeSpotNotificationSubscriptionFactory.build( pk=uuid4(), child=child, occurrence=occurrence