-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make test temporary directories not in the "test" folder
This prevented the execution of the tests post-installation
- Loading branch information
Showing
8 changed files
with
9 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,9 @@ | ||
import pytest | ||
import pybedtools | ||
import os | ||
|
||
testdir = os.path.dirname(__file__) | ||
test_tempdir = os.path.join(os.path.abspath(testdir), "tmp") | ||
unwriteable = os.path.join(os.path.abspath(testdir), "unwriteable") | ||
|
||
|
||
def setup_module(): | ||
if not os.path.exists(test_tempdir): | ||
os.system("mkdir -p %s" % test_tempdir) | ||
pybedtools.set_tempdir(test_tempdir) | ||
|
||
|
||
def teardown_module(): | ||
if os.path.exists(test_tempdir): | ||
os.system("rm -r %s" % test_tempdir) | ||
pybedtools.cleanup() |