We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Following case breaks:
from builders.construct import Reused, Maybe, Random from builders.modifiers import Given, Enabled from builders.builder import Builder class A: k = Random() class B: a = Maybe(Reused(A), enabled=False) def test_building(): a = Builder(A).build() b = Builder(B).withA(Enabled(B.a)).withA(Given(B.a, a)).build() b = Builder(B).build() assert b.a is None
but if you add one more Builder(B).build() before asserting - everything goes ok
Builder(B).build()
The text was updated successfully, but these errors were encountered:
Looks like that is due to the state being preserved withing the Enabled thing.
Enabled
Sorry, something went wrong.
pupssman
No branches or pull requests
Following case breaks:
but if you add one more
Builder(B).build()
before asserting - everything goes okThe text was updated successfully, but these errors were encountered: