Skip to content

Commit

Permalink
bugfix: transformer.dumps: support string paths
Browse files Browse the repository at this point in the history
Top-level functions accept LaxPath instances, which are unions of Path
and str. However, Scenario.from_path expects only a Path (not a str) and
is called by _dump_as_lines (which uses LaxPath) without first
converting potential strings to Path.

Reported in #75.

Signed-off-by: Thibaut Le Page <[email protected]>
  • Loading branch information
thilp committed Oct 20, 2021
1 parent e50f4a5 commit c81e52e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transformer/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def _dump_as_lines(
plugins_for = plug.group_by_contract(plugins)
scenarios = [
Scenario.from_path(
path,
Path(path),
plugins_for[Contract.OnTask],
plugins_for[Contract.OnTaskSequence],
blacklist=blacklist.from_file(),
Expand Down

0 comments on commit c81e52e

Please sign in to comment.