Fix bug in scoped names, when parent is changed after child creation
Bug description:
In hive/tests/functional/python_tests/hived/test_hived_options.py first tests
do not need package fixture, but latter needs. Operations order is following:
- package scope creation
- module scope creation
- package-fixture creation <-- here names in module scope were not informed
about names registered in package-fixture
Solution:
Child always checks before registering new name, what names are registered in
parent. This is not tested in opposite way, because such situation doesn't
happen with pytest fixtures. Fixtures with higher scope are run before.
Loading
Please sign in to comment