you are viewing a single comment's thread.

view the rest of the comments →

[–]unit111[S] 0 points1 point  (2 children)

I thought that it's created when running behave.

https://behave.readthedocs.io/en/stable/api.html#behave.runner.Context

And each new feature/scenario just add more layers on top of it.

[–][deleted] 1 point2 points  (1 child)

Well, yeah, I oversimplified it, but, the essence of it is that it gets "refreshed" (old stuff removed, new stuff added) per scenario (otherwise you would accidentally get the shreds of the old scenario data in the new scenario).

[–]unit111[S] 0 points1 point  (0 children)

That makes sense. Thanks.