PY-85660 Allow quoted parameters in steps

Also fixes PY-86339, behave<=1.2.6 didn't have `clear` method in step
registry, so a check for it was added for backwards compatibility.

GitOrigin-RevId: ee5290cbff3833da471c0a8516441fd9d6a135bf
This commit is contained in:
Alexey Katsman
2026-02-14 01:45:13 +00:00
committed by intellij-monorepo-bot
parent 09aded1626
commit 432c6eb55e
+4 -2
View File
@@ -122,9 +122,11 @@ class _RunnerWrapper(runner.Runner):
self.hooks.clear()
self.features = []
if self.step_registry is None:
the_step_registry.clear()
if hasattr(the_step_registry, 'clear'):
the_step_registry.clear()
else:
self.step_registry.clear()
if hasattr(self.step_registry, 'clear'):
self.step_registry.clear()
class _BehaveRunner(_bdd_utils.BddRunner):