Skip to content

checks using sets in blocks are not represented correctly in string dumps #58

Description

@amias-channer

Hello All,

Thanks for all you hard work on biscuits , i'm a big fan !

i am using biscuit-python 0.4.0 and i think i have found a bug in the string representation of the a check containing a set .

this looks like its just in the python side because the underlying behaviour is correct.

This test case creates an authority and adds some blocks to it which contain checks against a set

In the string representation of the blocks the names of the set variables seem to be repeated from the first one.
In the string representation of the authoriser the names of the set variables in the blocks seem to be correct and the behavior is correct.

I wrote this using pycharm on windows 11 with python 3.12

sets_testcase.py

Cheers
Amias

Activity

  1. divarvel commented on Oct 1, 2026

    @divarvel
    Contributor

    Could you try opening a PR with the test-case added to the existing test file please? No worries if it's a failing test, i'll handle the fix from there

  2. amias-channer commented on Oct 2, 2026

    @amias-channer
    Author

    There you go
    #59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions