Skip to content

Commit

Permalink
glob option in interpolated
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasheinrich committed Jun 14, 2017
1 parent 382309f commit 4a3b31b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_publishers.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_interp_pub_glob(tmpdir):
pubbed = handlers['interpolated-pub']['default'](pub,pars,ctx)

filelist = map(str,[tmpdir.join('hello_myvalue_1.txt'),tmpdir.join('hello_myvalue_2.txt')])
assert pubbed == {'hello': filelist}
assert set(pubbed['hello']) == set(filelist)


def test_glob_pub(tmpdir):
Expand All @@ -65,7 +65,7 @@ def test_glob_pub(tmpdir):
pubbed = handlers['fromglob-pub']['default'](pub,pars,ctx)

filelist = map(str,[tmpdir.join('hello_1.txt'),tmpdir.join('hello_2.txt')])
assert pubbed == {'hello': filelist}
assert set(pubbed['hello']) == set(filelist)

def test_yml_pub(tmpdir):
tmpdir.join('hello.yml').write('hello: world\n')
Expand Down

0 comments on commit 4a3b31b

Please sign in to comment.