diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-10-27 20:22:39 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-10-28 11:10:42 +0300 |
commit | 5321180f75f69ce2699b6299488576feb6a60499 (patch) | |
tree | 0e819ad111d4c1692546b4bbcee7780fa326685f /subplot.yaml | |
parent | a652f1995a81ccb3846f014b7a6de8a2358d1695 (diff) | |
download | subplot-5321180f75f69ce2699b6299488576feb6a60499.tar.gz |
refactor: use simple patterns where possible
Many of our bindings files were originally written before Subplot
supported simple patterns, and so they use regex patterns even when a
simple pattern would do. Simplify bindings to use simple patterns when
possible, to make life easier for future maintainers.
Sponsored-by: author
Diffstat (limited to 'subplot.yaml')
-rw-r--r-- | subplot.yaml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/subplot.yaml b/subplot.yaml index 229cc7d..b865d83 100644 --- a/subplot.yaml +++ b/subplot.yaml @@ -4,17 +4,15 @@ function: install_subplot cleanup: uninstall_subplot -- then: scenario "(?P<name>.+)" was run +- then: scenario "{name:text}" was run impl: python: function: scenario_was_run - regex: true -- then: scenario "(?P<name>.+)" was not run +- then: scenario "{name:text}" was not run impl: python: function: scenario_was_not_run - regex: true - then: step "(?P<keyword>given|when|then) (?P<name>.+)" was run impl: |