Skip to content

Commit

Permalink
fix: test expects files with contents (#2221)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianmtr committed Mar 24, 2021
1 parent 72e5c83 commit 9b3ab47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/flow/test_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,9 @@ def validate(req):
f = Flow(restful=restful, read_only=True).add(
uses=os.path.join(cur_dir, '../yaml/datauriindex.yml'), timeout_ready=-1
)

files = os.path.join(cur_dir, 'yaml/*.yml')
with f:
f.index_files('*.py', on_done=response_mock)
f.index_files(files, on_done=response_mock)

validate_callback(response_mock, validate)

Expand Down

0 comments on commit 9b3ab47

Please sign in to comment.