Skip to content

Support development without access to EP-internal infrastructure #222

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

Conversation

NMertsch
Copy link
Contributor

@NMertsch NMertsch commented May 11, 2025

Summary

Add a static Pretix mock service via scripts/pretix-mock.py.

Relates to #220

Rationale

The bot requires access to a Pretix instance, and we (obviously) don't provide public access to our ticketing system.
This is a high barrier for contributors.

Details

This PR allows contributors to run use a local Pretix mock instance:

  • Run: python scripts/pretix-mock.py --port 8080
  • Configuration: registration.pretix_base_url = "http://localhost:8080"

The mock instance contains the following orders (names are common placeholder names):

Order 'AAAAA' (paid)

  • Business Combined Ticket for 'Jane Doe'
  • Business Tutorial Ticket for 'John Doe'
  • Childcare

Order 'BBB22' (paid)

  • Volunteer Ticket for 'Minta János'
  • Speaker Ticket for 'Minta Kata'
  • T-Shirt

Order 'CCC33' (paid)

  • Personal Remote Ticket for 'Martina Mustermann'

Order 'DDDD44' (paid)

  • Sponsor Ticket for 'Seán Ó Rudaí'
  • T-Shirt

Order 'EEE55' (payment pending)

  • Personal Late Conference Ticket for 'Numerius Negidius'

Other changes

@NMertsch NMertsch linked an issue May 11, 2025 that may be closed by this pull request
@NMertsch NMertsch marked this pull request as ready for review May 11, 2025 13:45
@NMertsch NMertsch merged commit 21e6a3e into main May 11, 2025
4 checks passed
@NMertsch NMertsch deleted the 220-add-pretix-and-programapi-mocks-to-allow-isolated-developmenttesting branch May 11, 2025 13:45
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

Successfully merging this pull request may close these issues.

Add pretix and programapi mocks to allow isolated development/testing
1 participant