Skip to content

Provide cli command to import people Horw#2541

Open
Tschuppi81 wants to merge 5 commits into
masterfrom
feature/ogc-3228-import-personen-gemeinde-horw
Open

Provide cli command to import people Horw#2541
Tschuppi81 wants to merge 5 commits into
masterfrom
feature/ogc-3228-import-personen-gemeinde-horw

Conversation

@Tschuppi81

Copy link
Copy Markdown
Contributor

NOT TO BE MERGED!!

@linear

linear Bot commented Jun 25, 2026

Copy link
Copy Markdown

OGC-3228

@codecov

codecov Bot commented Jun 25, 2026

Copy link
Copy Markdown

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
2731 1 2730 17
View the top 1 failed test(s) by shortest run time
tests/onegov/feriennet/test_views.py::test_booking_after_finalization_all_inclusive
Stack Traces | 3.31s run time
client = <tests.onegov.feriennet.conftest.Client object at 0x7fa4ecaf15a0>
scenario = <tests.onegov.activity.conftest.Scenario object at 0x7fa4e61a4550>

    def test_booking_after_finalization_all_inclusive(
        client: Client,
        scenario: Scenario
    ) -> None:
    
        scenario.add_period(
            title="2019",
            confirmed=True,
            finalized=True,
            all_inclusive=True,
            pay_organiser_directly=False,
            booking_cost=100,
        )
    
        scenario.add_activity(title="Fishing", state='accepted')
        scenario.add_occasion(cost=10)
        scenario.add_activity(title="Hunting", state='accepted')
        scenario.add_occasion(cost=10)
    
        scenario.add_attendee(name="Beavis")
        scenario.add_attendee(name="Butthead")
    
        scenario.commit()
    
        # this is only possible as an Admin
        client.login_editor()
        client.fill_out_profile()
        assert "Anmelden" not in client.get('/activity/fishing')
        assert "Anmelden" not in client.get('/activity/hunting')
    
        client.login_admin()
        client.fill_out_profile()
        assert "Anmelden" in client.get('/activity/fishing')
        assert "Anmelden" in client.get('/activity/hunting')
    
        # adding Beavis should result in a new invoice with the all inclusive
        # price, as well as the activity-specific price
        page = client.get('/activity/fishing').click("Anmelden")
        page.select_radio('attendee', "Beavis")
        page.form.submit().follow()
    
        page = client.get('/my-bills')
        assert str(page).count('110.00 Ausstehend') == 1
        help = [e.text.strip() for e in page.pyquery('.item-text')[:-2]]
        assert help == [
            'Ferienpass',
            'Fishing',
        ]
    
        # adding Butthead will incur an additional all-inclusive charge
        page = client.get('/activity/fishing').click("Anmelden")
        page.select_radio('attendee', "Butthead")
        page.form.submit()
    
        page = client.get('/my-bills')
>       assert str(page).count('220.00 Ausstehend') == 1
E       assert 0 == 1
E        +  where 0 = <built-in method count of str object at 0x1c90ab50>('220.00 Ausstehend')
E        +    where <built-in method count of str object at 0x1c90ab50> = 'Response: 200 OK\nCache-Control: no-store\nContent-Security-Policy: base-uri \'self\';block-all-mixed-content;child-s...script" src="http:.../localhost/7da9c72a3b5f9e060b898ef7cd714b8a/all_blank.bundle.js?9baeca26"></script></body>\n</html>'.count
E        +      where 'Response: 200 OK\nCache-Control: no-store\nContent-Security-Policy: base-uri \'self\';block-all-mixed-content;child-s...script" src="http:.../localhost/7da9c72a3b5f9e060b898ef7cd714b8a/all_blank.bundle.js?9baeca26"></script></body>\n</html>' = str(<200 OK text/html body=b'<!DOCTYP...\n\n'/41924>)

.../onegov/feriennet/test_views.py:2899: AssertionError

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

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.

1 participant