#1485 Pinned form tests started to fail in F33 chroot
Closed: Fixed 3 years ago by praiskup. Opened 3 years ago by praiskup.

See https://pagure.io/copr/copr/commits/master

=================================== FAILURES ===================================
_______________________ TestPinnedCoprsLogic.test_limit ________________________

self = <test_coprs_logic.TestPinnedCoprsLogic object at 0x7f866a50aca0>

    def test_limit(self):
        app.config["PINNED_PROJECTS_LIMIT"] = 1
        with app.app_context():
            form = PinnedCoprsForm()
            form.copr_ids.data = ["1"]
            assert form.validate()

            form.copr_ids.data = ["1", "2"]
            assert not form.validate()
>           assert "Too many" in form.errors["coprs"][0]
E           KeyError: 'coprs'

tests/test_logic/test_coprs_logic.py:246: KeyError
____________________ TestPinnedCoprsLogic.test_unique_coprs ____________________

self = <test_coprs_logic.TestPinnedCoprsLogic object at 0x7f866a434310>

    def test_unique_coprs(self):
        app.config["PINNED_PROJECTS_LIMIT"] = 2
        with app.app_context():
            form = PinnedCoprsForm()
            form.copr_ids.data = ["1", "1"]
            assert not form.validate()
>           assert "only once" in form.errors["coprs"][0]
E           KeyError: 'coprs'

tests/test_logic/test_coprs_logic.py:254: KeyError

Screenshot_20200827_171730.png


Rawhide still builds fine, though there's probably still an old compose so the new
wtforms are not propagated to rawhide buildroots...

Metadata Update from @praiskup:
- Issue assigned to frostyx

3 years ago

Login to comment on this ticket.

Metadata
Attachments 1
Related Pull Requests
  • #1496 Merged 3 years ago
  • #1495 Closed 3 years ago