def test_main(tmpdir_factory): path = tmpdir_factory.get() # Don't actually want to make these in the current repo with mock.patch.object(make_archives, 'RESOURCES_DIR', path): make_archives.main() for archive, _, _ in make_archives.REPOS: assert os.path.exists(os.path.join(path, archive + '.tar.gz'))
def test_main(tmpdir_factory): path = tmpdir_factory.get() # Don't actually want to make these in the current repo with mock.patch.object(make_archives, 'RESOURCES_DIR', path): make_archives.main() for archive, _, _ in make_archives.REPOS: assert os.path.exists(os.path.join(path, archive + '.tar.gz'))
def test_main(tmpdir): make_archives.main(('--dest', tmpdir.strpath)) for archive, _, _ in make_archives.REPOS: assert tmpdir.join('{}.tar.gz'.format(archive)).exists()
def test_main(tmpdir): make_archives.main(('--dest', tmpdir.strpath)) for archive, _, _ in make_archives.REPOS: assert tmpdir.join('{}.tar.gz'.format(archive)).exists()