Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mirpedrol committed Oct 24, 2022
1 parent 8b30598 commit a79918e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/modules/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def test_modules_install_nopipeline(self):
@with_temporary_folder
def test_modules_install_emptypipeline(self, tmpdir):
"""Test installing a module - empty dir given"""
self.mods_install.dir = tmpdir
os.mkdir(os.path.join(tmpdir, "nf-core-pipe"))
self.mods_install.dir = os.path.join(tmpdir, "nf-core-pipe")
with pytest.raises(UserWarning) as excinfo:
self.mods_install.install("foo")
assert "Could not find a 'main.nf' or 'nextflow.config' file" in str(excinfo.value)
Expand Down

0 comments on commit a79918e

Please sign in to comment.