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

pretix: Installation fails during pytestCheckPhase at EventLocaleTest #374908

Closed
3 tasks done
Florz opened this issue Jan 18, 2025 · 1 comment
Closed
3 tasks done

pretix: Installation fails during pytestCheckPhase at EventLocaleTest #374908

Florz opened this issue Jan 18, 2025 · 1 comment
Labels
0.kind: bug Something is broken

Comments

@Florz
Copy link

Florz commented Jan 18, 2025

Nixpkgs version

  • Stable (24.11)

Describe the bug

Nixos-rebuild fails due to a bug during the installation of pretix.

Steps to reproduce

configuration.nix:

  services.pretix = {
     enable = true;
     nginx.enable = true;
     nginx.domain = "tickets.example.com tickets.example.de";

     settings = {
        pretix.instance_name = "Example-Ticketshop";
        pretix.url = "https://tickets.example.com";
        pretix.currency = "EUR";
        mail.host = "192.168.1.25";
        mail.from = "[email protected]";
     };
  };

# nixos-rebuild switch --upgrade

Expected behaviour

nixos-rebuild finishes without an error

Screenshots

No response

Relevant log output

Executing pytestCheckPhase
============================= test session starts ==============================
platform linux -- Python 3.12.8, pytest-8.3.3, pluggy-1.5.0
django: version: 4.2.17, settings: tests.settings (from env)
rootdir: /build/source
configfile: pyproject.toml
plugins: xdist-3.6.1, mock-3.14.0, django-4.9.0, asyncio-0.23.8, rerunfailures-14.0
asyncio: mode=Mode.STRICT
4 workers [5412 items] m
........................................................................ [  1%]
........................................................................ [  2%]
........................................................................ [  3%]
........................................................................ [  5%]
........................................................................ [  6%]
........................................................................ [  7%]
........................................................................ [  9%]
........................................................................ [ 10%]
........................................................................ [ 11%]
........................................................................ [ 13%]
........................................................................ [ 14%]
........................................................................ [ 15%]
........................................................................ [ 17%]
........................................................................ [ 18%]
........................................................................ [ 19%]
........................................................................ [ 21%]
........................................................................ [ 22%]
........................................................................ [ 23%]
........................................................................ [ 25%]
........................................................................ [ 26%]
........................................................................ [ 27%]
........................................................................ [ 29%]
....................................................s................... [ 30%]
........................................................................ [ 31%]
........................................................................ [ 33%]
........................................................................ [ 34%]
........................................................................ [ 35%]
................................................................x....... [ 37%]
........................................................................ [ 38%]
........................................................................ [ 39%]
........................................................................ [ 41%]
........................................................................ [ 42%]
........................................s............................... [ 43%]
........................................................................ [ 45%]
........................................................................ [ 46%]
........................................................................ [ 47%]
........................................................................ [ 49%]
........................................................................ [ 50%]
........................................................................ [ 51%]
........................................................................ [ 53%]
........................................................................ [ 54%]
........................................................................ [ 55%]
........................................................................ [ 57%]
........................................................................ [ 58%]
........................................................................ [ 59%]
........................................................................ [ 61%]
........................................................................ [ 62%]
........................................................................ [ 63%]
........................................................................ [ 65%]
........................................................................ [ 66%]
........................................................................ [ 67%]
........................................................................ [ 69%]
........................................................................ [ 70%]
........................................................................ [ 71%]
........................................................................ [ 73%]
........................................................................ [ 74%]
........................................................................ [ 75%]
........................................................................ [ 77%]
........................................................................ [ 78%]
........................................................................ [ 79%]
........................................................................ [ 81%]
........................................................................ [ 82%]
.............................................R...R..R...F.....R.R.R.F... [ 83%]
..RR.R.F................................................................ [ 84%]
........................................................................ [ 86%]
........................................................................ [ 87%]
........................................................................ [ 88%]
........................................................................ [ 90%]
.......................................s..ss.ss...ss.ss.ss.s.ss.s....... [ 91%]
........................................................................ [ 92%]
........................................................................ [ 94%]
........................................................................ [ 95%]
........................................................................ [ 96%]
........................................................................ [ 98%]
..........s............................................................. [ 99%]
.....................                                                    [100%]
=================================== FAILURES ===================================
__________________ EventLocaleTest.test_english_no_region_set __________________
[gw3] linux -- Python 3.12.8 /nix/store/kjgslpdqchx1sm7a5h9xibi5rrqcqfnl-python3-3.12.8/bin/python3.12

self = <tests.presale.test_event.EventLocaleTest testMethod=test_english_no_region_set>

    def test_english_no_region_set(self):
        self.client.get('/locale/set?locale=en')
        response = self.client.get(
            '/%s/%s/' % (self.orga.slug, self.event.slug)
        )
        self.assertEqual(response.status_code, 200)
>       self.assertIn('Fri, Dec. 26th,', response.rendered_content)
E       AssertionError: 'Fri, Dec. 26th,' not found in '\n\n\n\n\n\n<!DOCTYPE html>\n<html lang="en">\n<head>\n    <title>\n    \n    \n    \n30C3\n</title>\n    \n        <link rel="stylesheet" type="text/x-scss" href="/static/pretixpresale/scss/main.scss"/>\n    \n    \n        <link rel="stylesheet" type="text/css" href="/ccc/30c3/theme.css?version=47922c3e11cc-1737239972-1737239972" />\n    \n\n    \n\n\n    <script type="text/javascript" src="/static/jquery/js/jquery-3.6.4.min.js"></script>\n    <script type="text/javascript" src="/static/moment/moment-with-locales.js"></script>\n    <script type="text/javascript" src="/static/moment/moment-timezone-with-data-1970-2030.js"></script>\n    <script type="text/javascript" src="/static/js/jquery.formset.js"></script>\n    <script type="text/javascript" src="/static/bootstrap/js/bootstrap.js"></script>\n    <script type="text/javascript" src="/static/datetimepicker/bootstrap-datetimepicker.js"></script>\n    <script type="text/javascript" src="/static/slider/bootstrap-slider.js"></script>\n    <script type="text/javascript" src="/static/cropper/cropper.js"></script>\n    <script type="text/javascript" src="/static/pretixbase/js/details.js"></script>\n    <script type="text/javascript" src="/static/pretixcontrol/js/jquery.qrcode.min.js"></script>\n    <script type="text/javascript" src="/static/pretixpresale/js/widget/floatformat.js"></script>\n    <script type="text/javascript" src="/static/pretixpresale/js/ui/questions.js"></script>\n    <script type="text/javascript" src="/static/pretixpresale/js/ui/main.js"></script>\n    <script type="text/javascript" src="/static/pretixpresale/js/ui/sso.js"></script>\n    <script type="text/javascript" src="/static/pretixpresale/js/ui/cookieconsent.js"></script>\n    <script type="text/javascript" src="/static/pretixbase/js/asynctask.js"></script>\n    <script type="text/javascript" src="/static/pretixpresale/js/ui/cart.js"></script>\n    <script type="text/javascript" src="/static/lightbox/js/lightbox.js"></script>\n    <script type="text/javascript" src="/static/pretixpresale/js/ui/iframe.js"></script>\n\n\n    <meta name="referrer" content="origin">\n    \n    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">\n    \n    \n    \n    <meta property="og:type" content="website" />\n    \n    \n    \n\n    <meta property="og:title" content="30C3" />\n    \n        <meta property="og:description" content="Sat, Dec. 26th, 2026" />\n    \n    \n        <meta property="og:url" content="http://example.com/ccc/30c3/" />\n    \n\n    \n        <link rel="icon" href="/static/pretixbase/img/favicon.ico">\n        <link rel="shortcut icon" href="/static/pretixbase/img/favicon.ico">\n        <link rel="icon" type="image/png" sizes="16x16" href="/static/pretixbase/img/icons/favicon-16x16.png">\n        <link rel="icon" type="image/png" sizes="32x32" href="/static/pretixbase/img/icons/favicon-32x32.png">\n        <link rel="icon" type="image/png" sizes="192x192" href="/static/pretixbase/img/icons/android-chrome-192x192.png">\n        <link rel="apple-touch-icon" sizes="180x180" href="/static/pretixbase/img/icons/apple-touch-icon.png">\n    \n    <link rel="manifest" href="/site.webmanifest">\n    <meta name="msapplication-TileColor" content="#8E44B3">\n    <meta name="msapplication-config" content="/browserconfig.xml">\n    <meta name="theme-color" content="#8E44B3">\n</head>\n<body class="nojs" data-locale="en" data-now="1737239972.285779" data-datetimeformat="YYYY-MM-DD HH:mm" data-timeformat="HH:mm" data-dateformat="YYYY-MM-DD" data-datetimelocale="en" data-currency="EUR">\n\n<header>\n\n\n    \n    <div class="container page-header-links page-header-links-outside">\n        \n            \n                <div class="pull-right header-part flip hidden-print">\n                    \n                        <nav class="locales" aria-label="select language">\n                            <ul>\n                            \n                                <li><a href="/locale/set?locale=de&next=/ccc/30c3/" class="" rel="nofollow" lang="de" hreflang="de"\n                                    aria-label="Website auf Deutsch">Deutsch</a></li>\n                            \n                                <li><a href="/locale/set?locale=en&next=/ccc/30c3/" class="active" rel="nofollow" lang="en" hreflang="en"\n                                    aria-label="Website in English">English</a></li>\n                            \n                            </ul>\n                        </nav>\n                    \n                    \n\n\n\n\n                </div>\n            \n        \n        \n        <div class="clearfix"></div>\n    </div>\n\n</header>\n<div class="container main-box">\n    \n    <div class="page-header">\n        <div class="pull-left flip">\n            \n            \n                <h1>\n                    <a href="/ccc/30c3/" aria-label="Homepage">30C3</a>\n                    \n                        <small><time datetime="2026-12-26">Sat, Dec. 26th, 2026</time></small>\n                    \n                </h1>\n            \n        </div>\n        \n            \n        \n        <div class="clearfix"></div>\n    </div>\n    \n    \n    \n    \n\n    \n        <script type="application/ld+json">\n            {"@context": "http://schema.org", "@type": "Event", "location": {"@type": "Place", "address": ""}, "name": "30C3", "startDate": "2026-12-26T14:00:00+00:00"}\n        </script>\n    \n    <main aria-label="General information, add products to your cart">\n    \n\n    \n        \n        \n    \n\n    \n        \n        \n            <div>\n                \n\n\n\n    <div class="info-row">\n        <span class="fa fa-clock-o fa-fw" aria-hidden="true" title="When does the event happen?"></span>\n        <p><span class="sr-only">When does the event happen?</span>\n            <time datetime="2026-12-26">Sat, Dec. 26th, 2026</time>\n            \n                <br>\n                <span data-time="2026-12-26T14:00:00+00:00" data-timezone="UTC">\n                    \n                        Begin: <time datetime="14:00">14:00</time>\n                    \n                </span>\n                \n            \n            \n            <br>\n            \n                <a href="/ccc/30c3/ical">\n            \n            Add to Calendar\n            </a>\n        </p>\n    </div>\n\n\n            </div>\n            \n        \n\n        \n            <form method="post" data-asynctask\n                    data-asynctask-headline="We\'re now trying to reserve this for you!"\n                    data-asynctask-text="Once the items are in your cart, you will have 30 minutes to complete your purchase."\n                    class=""\n                    action="/ccc/30c3/cart/add?next=/ccc/30c3/&next_error=/ccc/30c3/">\n                <input type="hidden" name="csrfmiddlewaretoken" value="LGzrC5lC6SqbkwZ5taaGWOeXDB0DgfDiXjUup6LMDqWke1sK5iR9BWDJ4zLZUxDR">\n                <input type="hidden" name="subevent" value="" />\n                \n\n                \n\n                \n\n\n\n\n\n\n\n\n                \n            </form>\n        \n    \n    </main>\n    \n    \n        \n        <aside class="front-page" aria-labelledby="if-you-already-ordered-a-ticket">\n            <h3 id="if-you-already-ordered-a-ticket">If you already ordered a ticket</h3>\n            <div class="row">\n                <div class="col-md-8 col-xs-12">\n                    <p>\n                        If you want to see or change the status and details of your order, click on the link in one of the emails we sent you during the order process. If you cannot find the link, click on the following button to request the link to your order to be sent to you again.\n                    </p>\n                </div>\n                <div class="col-md-4 col-xs-12">\n                    <a class="btn btn-block btn-default" href="/ccc/30c3/resend/">\n                        Resend order link\n                    </a>\n                </div>\n                <div class="clearfix"></div>\n            </div>\n        </aside>\n    \n\n\n    <footer>\n        \n    \n    \n\n        <nav aria-label="Footer Navigation">\n            <ul>\n            \n    \n    \n    \n    \n\n            \n            \n            <li><a href="/redirect/?url=https%3A//pretix.eu%3AVE_TdgChD5-IaIxkucPniEZR_T_oyaNow0aQhPMF1PE" target="_blank" rel="noopener">ticketing powered by pretix</a></li> \n \n            </ul>\n        </nav>\n    </footer>\n</div>\n\n\n\n\n<div id="ajaxerr">\n</div>\n<div id="popupmodal" hidden aria-live="polite">\n    <div class="modal-card">\n        <div class="modal-card-icon">\n            <i class="fa fa-window-restore big-icon" aria-hidden="true"></i>\n        </div>\n        <div class="modal-card-content">\n            <div>\n                <h3>\n                    We\'ve started the requested process in a new window.\n                </h3>\n                <p class="text">\n                    If you do not see the new window, we can help you launch it again.\n                </p>\n                <p>\n                    <a href="" data-open-in-popup-window class="btn btn-default">\n                        <span class="fa fa-external-link-square"></span>\n                        Open window again\n                    </a>\n                </p>\n                <p class="text">\n                    Once the process in the new window has been completed, you can continue here.\n                </p>\n            </div>\n        </div>\n    </div>\n</div>\n<div id="loadingmodal" hidden aria-live="polite">\n    <div class="modal-card">\n        <div class="modal-card-icon">\n            <i class="fa fa-cog big-rotating-icon" aria-hidden="true"></i>\n        </div>\n        <div class="modal-card-content">\n            <h3 id="loadingmodal-label"></h3>\n            <div id="loadingmodal-description">\n                <p class="text"></p>\n                <p class="status">If this takes longer than a few minutes, please contact us.</p>\n            </div>\n        </div>\n    </div>\n</div>\n\n    <script type="text/plain" id="cookie-consent-storage-key">cookie-consent-ccc</script>\n    \n    \n\n\n\n    <script src="/static/jsi18n/en/djangojs.js"></script>\n\n\n\n</body>\n</html>\n'

src/tests/presale/test_event.py:1602: AssertionError
____________________ EventLocaleTest.test_english_region_US ____________________
[gw3] linux -- Python 3.12.8 /nix/store/kjgslpdqchx1sm7a5h9xibi5rrqcqfnl-python3-3.12.8/bin/python3.12

self = <tests.presale.test_event.EventLocaleTest testMethod=test_english_region_US>

    def test_english_region_US(self):
        self.event.settings.region = 'US'
        self.client.get('/locale/set?locale=en')
        response = self.client.get(
            '/%s/%s/' % (self.orga.slug, self.event.slug)
        )
        self.assertEqual(response.status_code, 200)
>       self.assertIn('Fri, Dec. 26th,', response.rendered_content)
E       AssertionError: 'Fri, Dec. 26th,' not found in '\n\n\n\n\n\n<!DOCTYPE html>\n<html lang="en-us">\n<head>\n    <title>\n    \n    \n    \n30C3\n</title>\n    \n        <link rel="stylesheet" type="text/x-scss" href="/static/pretixpresale/scss/main.scss"/>\n    \n    \n        <link rel="stylesheet" type="text/css" href="/ccc/30c3/theme.css?version=47922c3e11cc-1737239973-1737239973" />\n    \n\n    \n\n\n    <script type="text/javascript" src="/static/jquery/js/jquery-3.6.4.min.js"></script>\n    <script type="text/javascript" src="/static/moment/moment-with-locales.js"></script>\n    <script type="text/javascript" src="/static/moment/moment-timezone-with-data-1970-2030.js"></script>\n    <script type="text/javascript" src="/static/js/jquery.formset.js"></script>\n    <script type="text/javascript" src="/static/bootstrap/js/bootstrap.js"></script>\n    <script type="text/javascript" src="/static/datetimepicker/bootstrap-datetimepicker.js"></script>\n    <script type="text/javascript" src="/static/slider/bootstrap-slider.js"></script>\n    <script type="text/javascript" src="/static/cropper/cropper.js"></script>\n    <script type="text/javascript" src="/static/pretixbase/js/details.js"></script>\n    <script type="text/javascript" src="/static/pretixcontrol/js/jquery.qrcode.min.js"></script>\n    <script type="text/javascript" src="/static/pretixpresale/js/widget/floatformat.js"></script>\n    <script type="text/javascript" src="/static/pretixpresale/js/ui/questions.js"></script>\n    <script type="text/javascript" src="/static/pretixpresale/js/ui/main.js"></script>\n    <script type="text/javascript" src="/static/pretixpresale/js/ui/sso.js"></script>\n    <script type="text/javascript" src="/static/pretixpresale/js/ui/cookieconsent.js"></script>\n    <script type="text/javascript" src="/static/pretixbase/js/asynctask.js"></script>\n    <script type="text/javascript" src="/static/pretixpresale/js/ui/cart.js"></script>\n    <script type="text/javascript" src="/static/lightbox/js/lightbox.js"></script>\n    <script type="text/javascript" src="/static/pretixpresale/js/ui/iframe.js"></script>\n\n\n    <meta name="referrer" content="origin">\n    \n    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">\n    \n    \n    \n    <meta property="og:type" content="website" />\n    \n    \n    \n\n    <meta property="og:title" content="30C3" />\n    \n        <meta property="og:description" content="Sat, Dec. 26th, 2026" />\n    \n    \n        <meta property="og:url" content="http://example.com/ccc/30c3/" />\n    \n\n    \n        <link rel="icon" href="/static/pretixbase/img/favicon.ico">\n        <link rel="shortcut icon" href="/static/pretixbase/img/favicon.ico">\n        <link rel="icon" type="image/png" sizes="16x16" href="/static/pretixbase/img/icons/favicon-16x16.png">\n        <link rel="icon" type="image/png" sizes="32x32" href="/static/pretixbase/img/icons/favicon-32x32.png">\n        <link rel="icon" type="image/png" sizes="192x192" href="/static/pretixbase/img/icons/android-chrome-192x192.png">\n        <link rel="apple-touch-icon" sizes="180x180" href="/static/pretixbase/img/icons/apple-touch-icon.png">\n    \n    <link rel="manifest" href="/site.webmanifest">\n    <meta name="msapplication-TileColor" content="#8E44B3">\n    <meta name="msapplication-config" content="/browserconfig.xml">\n    <meta name="theme-color" content="#8E44B3">\n</head>\n<body class="nojs" data-locale="en" data-now="1737239973.645068" data-datetimeformat="YYYY-MM-DD HH:mm" data-timeformat="hh:mm a" data-dateformat="MM/DD/YYYY" data-datetimelocale="en" data-currency="EUR">\n\n<header>\n\n\n    \n    <div class="container page-header-links page-header-links-outside">\n        \n            \n                <div class="pull-right header-part flip hidden-print">\n                    \n                        <nav class="locales" aria-label="select language">\n                            <ul>\n                            \n                                <li><a href="/locale/set?locale=de&next=/ccc/30c3/" class="" rel="nofollow" lang="de" hreflang="de"\n                                    aria-label="Website auf Deutsch">Deutsch</a></li>\n                            \n                                <li><a href="/locale/set?locale=en&next=/ccc/30c3/" class="active" rel="nofollow" lang="en" hreflang="en"\n                                    aria-label="Website in English">English</a></li>\n                            \n                            </ul>\n                        </nav>\n                    \n                    \n\n\n\n\n                </div>\n            \n        \n        \n        <div class="clearfix"></div>\n    </div>\n\n</header>\n<div class="container main-box">\n    \n    <div class="page-header">\n        <div class="pull-left flip">\n            \n            \n                <h1>\n                    <a href="/ccc/30c3/" aria-label="Homepage">30C3</a>\n                    \n                        <small><time datetime="2026-12-26">Sat, Dec. 26th, 2026</time></small>\n                    \n                </h1>\n            \n        </div>\n        \n            \n        \n        <div class="clearfix"></div>\n    </div>\n    \n    \n    \n    \n\n    \n        <script type="application/ld+json">\n            {"@context": "http://schema.org", "@type": "Event", "location": {"@type": "Place", "address": ""}, "name": "30C3", "startDate": "2026-12-26T14:00:00+00:00"}\n        </script>\n    \n    <main aria-label="General information, add products to your cart">\n    \n\n    \n        \n        \n    \n\n    \n        \n        \n            <div>\n                \n\n\n\n    <div class="info-row">\n        <span class="fa fa-clock-o fa-fw" aria-hidden="true" title="When does the event happen?"></span>\n        <p><span class="sr-only">When does the event happen?</span>\n            <time datetime="2026-12-26">Sat, Dec. 26th, 2026</time>\n            \n                <br>\n                <span data-time="2026-12-26T14:00:00+00:00" data-timezone="UTC">\n                    \n                        Begin: <time datetime="14:00">2 p.m.</time>\n                    \n                </span>\n                \n            \n            \n            <br>\n            \n                <a href="/ccc/30c3/ical">\n            \n            Add to Calendar\n            </a>\n        </p>\n    </div>\n\n\n            </div>\n            \n        \n\n        \n            <form method="post" data-asynctask\n                    data-asynctask-headline="We\'re now trying to reserve this for you!"\n                    data-asynctask-text="Once the items are in your cart, you will have 30 minutes to complete your purchase."\n                    class=""\n                    action="/ccc/30c3/cart/add?next=/ccc/30c3/&next_error=/ccc/30c3/">\n                <input type="hidden" name="csrfmiddlewaretoken" value="zRKFAnwwrqWUcOXvtuceErbwciQbtNT89PJkk69CZDaL76qKPDY2CwlJKNv3Ul6Q">\n                <input type="hidden" name="subevent" value="" />\n                \n\n                \n\n                \n\n\n\n\n\n\n\n\n                \n            </form>\n        \n    \n    </main>\n    \n    \n        \n        <aside class="front-page" aria-labelledby="if-you-already-ordered-a-ticket">\n            <h3 id="if-you-already-ordered-a-ticket">If you already ordered a ticket</h3>\n            <div class="row">\n                <div class="col-md-8 col-xs-12">\n                    <p>\n                        If you want to see or change the status and details of your order, click on the link in one of the emails we sent you during the order process. If you cannot find the link, click on the following button to request the link to your order to be sent to you again.\n                    </p>\n                </div>\n                <div class="col-md-4 col-xs-12">\n                    <a class="btn btn-block btn-default" href="/ccc/30c3/resend/">\n                        Resend order link\n                    </a>\n                </div>\n                <div class="clearfix"></div>\n            </div>\n        </aside>\n    \n\n\n    <footer>\n        \n    \n    \n\n        <nav aria-label="Footer Navigation">\n            <ul>\n            \n    \n    \n    \n    \n\n            \n            \n            <li><a href="/redirect/?url=https%3A//pretix.eu%3AVE_TdgChD5-IaIxkucPniEZR_T_oyaNow0aQhPMF1PE" target="_blank" rel="noopener">ticketing powered by pretix</a></li> \n \n            </ul>\n        </nav>\n    </footer>\n</div>\n\n\n\n\n<div id="ajaxerr">\n</div>\n<div id="popupmodal" hidden aria-live="polite">\n    <div class="modal-card">\n        <div class="modal-card-icon">\n            <i class="fa fa-window-restore big-icon" aria-hidden="true"></i>\n        </div>\n        <div class="modal-card-content">\n            <div>\n                <h3>\n                    We\'ve started the requested process in a new window.\n                </h3>\n                <p class="text">\n                    If you do not see the new window, we can help you launch it again.\n                </p>\n                <p>\n                    <a href="" data-open-in-popup-window class="btn btn-default">\n                        <span class="fa fa-external-link-square"></span>\n                        Open window again\n                    </a>\n                </p>\n                <p class="text">\n                    Once the process in the new window has been completed, you can continue here.\n                </p>\n            </div>\n        </div>\n    </div>\n</div>\n<div id="loadingmodal" hidden aria-live="polite">\n    <div class="modal-card">\n        <div class="modal-card-icon">\n            <i class="fa fa-cog big-rotating-icon" aria-hidden="true"></i>\n        </div>\n        <div class="modal-card-content">\n            <h3 id="loadingmodal-label"></h3>\n            <div id="loadingmodal-description">\n                <p class="text"></p>\n                <p class="status">If this takes longer than a few minutes, please contact us.</p>\n            </div>\n        </div>\n    </div>\n</div>\n\n    <script type="text/plain" id="cookie-consent-storage-key">cookie-consent-ccc</script>\n    \n    \n\n\n\n    <script src="/static/jsi18n/en/djangojs.js"></script>\n\n\n\n</body>\n</html>\n'

src/tests/presale/test_event.py:1612: AssertionError
____________________ EventLocaleTest.test_german_region_US _____________________
[gw3] linux -- Python 3.12.8 /nix/store/kjgslpdqchx1sm7a5h9xibi5rrqcqfnl-python3-3.12.8/bin/python3.12

self = <tests.presale.test_event.EventLocaleTest testMethod=test_german_region_US>

    def test_german_region_US(self):
        self.event.settings.region = 'US'
        self.client.get('/locale/set?locale=de')
        response = self.client.get(
            '/%s/%s/' % (self.orga.slug, self.event.slug)
        )
        self.assertEqual(response.status_code, 200)
>       self.assertIn('Fr, 26. Dezember', response.rendered_content)
E       AssertionError: 'Fr, 26. Dezember' not found in '\n\n\n\n\n\n<!DOCTYPE html>\n<html lang="de-us">\n<head>\n    <title>\n    \n    \n    \n30C3\n</title>\n    \n        <link rel="stylesheet" type="text/x-scss" href="/static/pretixpresale/scss/main.scss"/>\n    \n    \n        <link rel="stylesheet" type="text/css" href="/ccc/30c3/theme.css?version=47922c3e11cc-1737239975-1737239975" />\n    \n\n    \n\n\n    <script type="text/javascript" src="/static/jquery/js/jquery-3.6.4.min.js"></script>\n    <script type="text/javascript" src="/static/moment/moment-with-locales.js"></script>\n    <script type="text/javascript" src="/static/moment/moment-timezone-with-data-1970-2030.js"></script>\n    <script type="text/javascript" src="/static/js/jquery.formset.js"></script>\n    <script type="text/javascript" src="/static/bootstrap/js/bootstrap.js"></script>\n    <script type="text/javascript" src="/static/datetimepicker/bootstrap-datetimepicker.js"></script>\n    <script type="text/javascript" src="/static/slider/bootstrap-slider.js"></script>\n    <script type="text/javascript" src="/static/cropper/cropper.js"></script>\n    <script type="text/javascript" src="/static/pretixbase/js/details.js"></script>\n    <script type="text/javascript" src="/static/pretixcontrol/js/jquery.qrcode.min.js"></script>\n    <script type="text/javascript" src="/static/pretixpresale/js/widget/floatformat.js"></script>\n    <script type="text/javascript" src="/static/pretixpresale/js/ui/questions.js"></script>\n    <script type="text/javascript" src="/static/pretixpresale/js/ui/main.js"></script>\n    <script type="text/javascript" src="/static/pretixpresale/js/ui/sso.js"></script>\n    <script type="text/javascript" src="/static/pretixpresale/js/ui/cookieconsent.js"></script>\n    <script type="text/javascript" src="/static/pretixbase/js/asynctask.js"></script>\n    <script type="text/javascript" src="/static/pretixpresale/js/ui/cart.js"></script>\n    <script type="text/javascript" src="/static/lightbox/js/lightbox.js"></script>\n    <script type="text/javascript" src="/static/pretixpresale/js/ui/iframe.js"></script>\n\n\n    <meta name="referrer" content="origin">\n    \n    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">\n    \n    \n    \n    <meta property="og:type" content="website" />\n    \n    \n    \n\n    <meta property="og:title" content="30C3" />\n    \n        <meta property="og:description" content="Sa, 26. Dezember 2026" />\n    \n    \n        <meta property="og:url" content="http://example.com/ccc/30c3/" />\n    \n\n    \n        <link rel="icon" href="/static/pretixbase/img/favicon.ico">\n        <link rel="shortcut icon" href="/static/pretixbase/img/favicon.ico">\n        <link rel="icon" type="image/png" sizes="16x16" href="/static/pretixbase/img/icons/favicon-16x16.png">\n        <link rel="icon" type="image/png" sizes="32x32" href="/static/pretixbase/img/icons/favicon-32x32.png">\n        <link rel="icon" type="image/png" sizes="192x192" href="/static/pretixbase/img/icons/android-chrome-192x192.png">\n        <link rel="apple-touch-icon" sizes="180x180" href="/static/pretixbase/img/icons/apple-touch-icon.png">\n    \n    <link rel="manifest" href="/site.webmanifest">\n    <meta name="msapplication-TileColor" content="#8E44B3">\n    <meta name="msapplication-config" content="/browserconfig.xml">\n    <meta name="theme-color" content="#8E44B3">\n</head>\n<body class="nojs" data-locale="de" data-now="1737239975.487245" data-datetimeformat="DD.MM.YYYY HH:mm" data-timeformat="HH:mm" data-dateformat="DD.MM.YYYY" data-datetimelocale="de" data-currency="EUR">\n\n<header>\n\n\n    \n    <div class="container page-header-links page-header-links-outside">\n        \n            \n                <div class="pull-right header-part flip hidden-print">\n                    \n                        <nav class="locales" aria-label="Sprache auswählen">\n                            <ul>\n                            \n                                <li><a href="/locale/set?locale=de&next=/ccc/30c3/" class="active" rel="nofollow" lang="de" hreflang="de"\n                                    aria-label="Website auf Deutsch">Deutsch</a></li>\n                            \n                                <li><a href="/locale/set?locale=en&next=/ccc/30c3/" class="" rel="nofollow" lang="en" hreflang="en"\n                                    aria-label="Website in English">English</a></li>\n                            \n                            </ul>\n                        </nav>\n                    \n                    \n\n\n\n\n                </div>\n            \n        \n        \n        <div class="clearfix"></div>\n    </div>\n\n</header>\n<div class="container main-box">\n    \n    <div class="page-header">\n        <div class="pull-left flip">\n            \n            \n                <h1>\n                    <a href="/ccc/30c3/" aria-label="Startseite">30C3</a>\n                    \n                        <small><time datetime="2026-12-26">Sa, 26. Dezember 2026</time></small>\n                    \n                </h1>\n            \n        </div>\n        \n            \n        \n        <div class="clearfix"></div>\n    </div>\n    \n    \n    \n    \n\n    \n        <script type="application/ld+json">\n            {"@context": "http://schema.org", "@type": "Event", "location": {"@type": "Place", "address": ""}, "name": "30C3", "startDate": "2026-12-26T14:00:00+00:00"}\n        </script>\n    \n    <main aria-label="Allgemeine Informationen, neue Produkte zum Warenkorb hinzufügen">\n    \n\n    \n        \n        \n    \n\n    \n        \n        \n            <div>\n                \n\n\n\n    <div class="info-row">\n        <span class="fa fa-clock-o fa-fw" aria-hidden="true" title="Wann findet diese Veranstaltung statt?"></span>\n        <p><span class="sr-only">Wann findet diese Veranstaltung statt?</span>\n            <time datetime="2026-12-26">Sa, 26. Dezember 2026</time>\n            \n                <br>\n                <span data-time="2026-12-26T14:00:00+00:00" data-timezone="UTC">\n                    \n                        Beginn: <time datetime="14:00">14:00</time>\n                    \n                </span>\n                \n            \n            \n            <br>\n            \n                <a href="/ccc/30c3/ical">\n            \n            Zum Kalender hinzufügen\n            </a>\n        </p>\n    </div>\n\n\n            </div>\n            \n        \n\n        \n            <form method="post" data-asynctask\n                    data-asynctask-headline="Wir versuchen nun, die ausgewählten Produkte für Sie zu reservieren!"\n                    data-asynctask-text="Sobald die Produkte in Ihrem Warenkorb sind, haben Sie 30 Minuten um Ihre Bestellung abzuschließen."\n                    class=""\n                    action="/ccc/30c3/cart/add?next=/ccc/30c3/&next_error=/ccc/30c3/">\n                <input type="hidden" name="csrfmiddlewaretoken" value="n9TRqlmZIoSIiGYE032Ymq23JAzSSsJF1L42yNB3ULn653Cs71QP2vECN9T3a8Qs">\n                <input type="hidden" name="subevent" value="" />\n                \n\n                \n\n                \n\n\n\n\n\n\n\n\n                \n            </form>\n        \n    \n    </main>\n    \n    \n        \n        <aside class="front-page" aria-labelledby="if-you-already-ordered-a-ticket">\n            <h3 id="if-you-already-ordered-a-ticket">Wenn Sie bereits ein Ticket bestellt haben</h3>\n            <div class="row">\n                <div class="col-md-8 col-xs-12">\n                    <p>\n                        Wenn Sie den Status und die Details Ihrer Bestellung einsehen oder ändern wollen, klicken Sie auf den Link in einer der E-Mails, die wir Ihnen im Bestellvorgang geschickt haben. Wenn Sie den Link nicht finden können, klicken Sie auf den folgenden Button, um ein erneutes Zusenden des Links anzufordern.\n                    </p>\n                </div>\n                <div class="col-md-4 col-xs-12">\n                    <a class="btn btn-block btn-default" href="/ccc/30c3/resend/">\n                        Link erneut senden\n                    </a>\n                </div>\n                <div class="clearfix"></div>\n            </div>\n        </aside>\n    \n\n\n    <footer>\n        \n    \n    \n\n        <nav aria-label="Fußzeile">\n            <ul>\n            \n    \n    \n    \n    \n\n            \n            \n            <li><a href="/redirect/?url=https%3A//pretix.eu%3AVE_TdgChD5-IaIxkucPniEZR_T_oyaNow0aQhPMF1PE" target="_blank" rel="noopener">Event-Ticketing-Software von pretix</a></li> \n \n            </ul>\n        </nav>\n    </footer>\n</div>\n\n\n\n\n<div id="ajaxerr">\n</div>\n<div id="popupmodal" hidden aria-live="polite">\n    <div class="modal-card">\n        <div class="modal-card-icon">\n            <i class="fa fa-window-restore big-icon" aria-hidden="true"></i>\n        </div>\n        <div class="modal-card-content">\n            <div>\n                <h3>\n                    Wir haben den angeforderten Prozess in einem neuen Fenster gestartet.\n                </h3>\n                <p class="text">\n                    Wenn Sie das neue Fenster nicht sehen, können wir Ihnen helfen, es erneut zu öffnen.\n                </p>\n                <p>\n                    <a href="" data-open-in-popup-window class="btn btn-default">\n                        <span class="fa fa-external-link-square"></span>\n                        Fenster erneut öffnen\n                    </a>\n                </p>\n                <p class="text">\n                    Sobald der Prozess im neuen Fenster abgeschlossen wurde, können Sie hier fortfahren.\n                </p>\n            </div>\n        </div>\n    </div>\n</div>\n<div id="loadingmodal" hidden aria-live="polite">\n    <div class="modal-card">\n        <div class="modal-card-icon">\n            <i class="fa fa-cog big-rotating-icon" aria-hidden="true"></i>\n        </div>\n        <div class="modal-card-content">\n            <h3 id="loadingmodal-label"></h3>\n            <div id="loadingmodal-description">\n                <p class="text"></p>\n                <p class="status">Wenn dies länger als ein paar Minuten dauert, kontaktieren Sie uns bitte.</p>\n            </div>\n        </div>\n    </div>\n</div>\n\n    <script type="text/plain" id="cookie-consent-storage-key">cookie-consent-ccc</script>\n    \n    \n\n\n\n    <script src="/static/jsi18n/de/djangojs.js"></script>\n\n\n\n</body>\n</html>\n'

src/tests/presale/test_event.py:1622: AssertionError
=============================== warnings summary ===============================
../../nix/store/622vnah4017bxr2cjpn0wkb0xfazk1wv-python3.12-vat-moss-0.11.0/lib/python3.12/site-packages/vat_moss/exchange_rates.py:5
../../nix/store/622vnah4017bxr2cjpn0wkb0xfazk1wv-python3.12-vat-moss-0.11.0/lib/python3.12/site-packages/vat_moss/exchange_rates.py:5
../../nix/store/622vnah4017bxr2cjpn0wkb0xfazk1wv-python3.12-vat-moss-0.11.0/lib/python3.12/site-packages/vat_moss/exchange_rates.py:5
../../nix/store/622vnah4017bxr2cjpn0wkb0xfazk1wv-python3.12-vat-moss-0.11.0/lib/python3.12/site-packages/vat_moss/exchange_rates.py:5
../../nix/store/622vnah4017bxr2cjpn0wkb0xfazk1wv-python3.12-vat-moss-0.11.0/lib/python3.12/site-packages/vat_moss/exchange_rates.py:5
  /nix/store/622vnah4017bxr2cjpn0wkb0xfazk1wv-python3.12-vat-moss-0.11.0/lib/python3.12/site-packages/vat_moss/exchange_rates.py:5: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
    import cgi

../../nix/store/k5qsqxh5nxlbpl6da2cilv9p0knbldwb-python3.12-reportlab-4.2.4/lib/python3.12/site-packages/reportlab/lib/rl_safe_eval.py:12
../../nix/store/k5qsqxh5nxlbpl6da2cilv9p0knbldwb-python3.12-reportlab-4.2.4/lib/python3.12/site-packages/reportlab/lib/rl_safe_eval.py:12
../../nix/store/k5qsqxh5nxlbpl6da2cilv9p0knbldwb-python3.12-reportlab-4.2.4/lib/python3.12/site-packages/reportlab/lib/rl_safe_eval.py:12
../../nix/store/k5qsqxh5nxlbpl6da2cilv9p0knbldwb-python3.12-reportlab-4.2.4/lib/python3.12/site-packages/reportlab/lib/rl_safe_eval.py:12
../../nix/store/k5qsqxh5nxlbpl6da2cilv9p0knbldwb-python3.12-reportlab-4.2.4/lib/python3.12/site-packages/reportlab/lib/rl_safe_eval.py:12
  /nix/store/k5qsqxh5nxlbpl6da2cilv9p0knbldwb-python3.12-reportlab-4.2.4/lib/python3.12/site-packages/reportlab/lib/rl_safe_eval.py:12: DeprecationWarning: ast.NameConstant is deprecated and will be removed in Python 3.14; use ast.Constant instead
    haveNameConstant = hasattr(ast,'NameConstant')

src/tests/plugins/banktransfer/test_refund_export.py::test_export_refunds_as_sepa_xml[/control/event/dummy/dummy/]
src/tests/plugins/banktransfer/test_refund_export.py::test_export_refunds_as_sepa_xml[/control/organizer/dummy/]
src/tests/plugins/banktransfer/test_refund_export.py::test_export_refunds_omit_invalid_bic[/control/event/dummy/dummy/]
src/tests/plugins/banktransfer/test_refund_export.py::test_export_refunds_omit_invalid_bic[/control/organizer/dummy/]
  /nix/store/z028wdb8pnhwk9z1nrw40ws38bvkz2sm-python3.12-sepaxml-2.6.1/lib/python3.12/site-packages/sepaxml/transfer.py:311: DeprecationWarning: Testing an element's truth value will always return True in future versions.  Use specific 'len(elem)' or 'elem is not None' test instead.
    if TX_nodes['PstlAdr_Cdtr_Node']:

src/tests/plugins/banktransfer/test_refund_export.py::test_export_refunds_as_sepa_xml[/control/event/dummy/dummy/]
src/tests/plugins/banktransfer/test_refund_export.py::test_export_refunds_as_sepa_xml[/control/organizer/dummy/]
src/tests/plugins/banktransfer/test_refund_export.py::test_export_refunds_omit_invalid_bic[/control/event/dummy/dummy/]
src/tests/plugins/banktransfer/test_refund_export.py::test_export_refunds_omit_invalid_bic[/control/organizer/dummy/]
  /nix/store/z028wdb8pnhwk9z1nrw40ws38bvkz2sm-python3.12-sepaxml-2.6.1/lib/python3.12/site-packages/sepaxml/transfer.py:397: DeprecationWarning: Testing an element's truth value will always return True in future versions.  Use specific 'len(elem)' or 'elem is not None' test instead.
    if PmtInf_nodes['PstlAdr_Dbtr_Node']:

src/tests/presale/test_event.py::EventIcalDownloadTest::test_no_date_to
src/tests/presale/test_event.py::EventIcalDownloadTest::test_timezone_header_footer
src/tests/presale/test_event.py::EventIcalDownloadTest::test_include_timezone
  /nix/store/0z6jc80j8af51sk054dw43krlxcvxa39-python3.12-vobject-0.9.7/lib/python3.12/site-packages/vobject/icalendar.py:341: PytzUsageWarning: The zone attribute is specific to pytz's interface; please migrate to a new time zone provider. For more details on how to do so, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
    if hasattr(tzinfo, 'zone'):

src/tests/presale/test_event.py::EventIcalDownloadTest::test_no_date_to
src/tests/presale/test_event.py::EventIcalDownloadTest::test_timezone_header_footer
src/tests/presale/test_event.py::EventIcalDownloadTest::test_include_timezone
  /nix/store/0z6jc80j8af51sk054dw43krlxcvxa39-python3.12-vobject-0.9.7/lib/python3.12/site-packages/vobject/icalendar.py:342: PytzUsageWarning: The zone attribute is specific to pytz's interface; please migrate to a new time zone provider. For more details on how to do so, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
    return toUnicode(tzinfo.zone)

src/tests/presale/test_event.py::EventIcalDownloadTest::test_no_date_to
src/tests/presale/test_event.py::EventIcalDownloadTest::test_timezone_header_footer
src/tests/presale/test_event.py::EventIcalDownloadTest::test_include_timezone
  /nix/store/0z6jc80j8af51sk054dw43krlxcvxa39-python3.12-vobject-0.9.7/lib/python3.12/site-packages/vobject/icalendar.py:1744: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
    return tzinfo.localize(datetime.datetime(year, month, day, hour, minute, second))

src/tests/presale/test_event.py: 12 warnings
src/tests/presale/test_locale.py: 1 warning
  /build/source/src/pretix/presale/views/locale.py:63: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    expires=(datetime.utcnow() + timedelta(seconds=max_age)).strftime(

src/tests/presale/test_widget.py::WidgetCartTest::test_iframe_entry_view_wrapper
  /build/source/src/pretix/presale/views/__init__.py:496: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    expires=(datetime.utcnow() + timedelta(seconds=max_age)).strftime('%a, %d-%b-%Y %H:%M:%S GMT'),

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED src/tests/presale/test_event.py::EventLocaleTest::test_english_no_region_set - AssertionError: 'Fri, Dec. 26th,' not found in '\n\n\n\n\n\n<!DOCTYPE html>...
FAILED src/tests/presale/test_event.py::EventLocaleTest::test_english_region_US - AssertionError: 'Fri, Dec. 26th,' not found in '\n\n\n\n\n\n<!DOCTYPE html>...
FAILED src/tests/presale/test_event.py::EventLocaleTest::test_german_region_US - AssertionError: 'Fr, 26. Dezember' not found in '\n\n\n\n\n\n<!DOCTYPE html...
= 3 failed, 5390 passed, 18 skipped, 1 xfailed, 41 warnings, 9 rerun in 468.77s (0:07:48) =
error: builder for '/nix/store/8nlcfm7h6nzh9fs9kr14svmkswa5vwzq-pretix-2024.10.0.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/42dxhxahs5j5pzmiycf615qvaqd6q06v-nginx.conf.drv' failed to build
error: 1 dependencies of derivation '/nix/store/pnbhya0viz399h9irgm5hr0fmx4v43ds-python3-3.12.8-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vlfr0n5nikg5xszczc3kxpcpgad2299v-pretix-manage.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1fc5xy2862fiibp4jaq7xbv7igizzvmd-unit-nginx.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/j6vsmb9pavdi5nnvpvbf6bdlp8813rx8-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/5n39pxf461sh9zp58rh5nig96inayf3k-system-units.drv' failed to build
error: 1 dependencies of derivation '/nix/store/7x332nd35y50m59gmbfsyg40vnlawyak-nixos-system-pretix-24.11.713321.6a3ae7a5a12f.drv' failed to build

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.6.69, NixOS, 24.11 (Vicuna), 24.11.712329.d29ab98cd4a7
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.11
  • channels(root): "nixos-24.11"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Notify maintainers

@mweinelt

Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@Florz Florz added the 0.kind: bug Something is broken label Jan 18, 2025
@mweinelt
Copy link
Member

Fixed in #370913 #374822

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

2 participants