-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from gregstarr/develop
Develop
- Loading branch information
Showing
8 changed files
with
136 additions
and
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,15 @@ | |
|
||
def pytest_addoption(parser): | ||
parser.addoption("--skip-ftp", action='store_true', default=False) | ||
parser.addoption("--run-slow", action="store_true", default=False, help="Run slow tests") | ||
|
||
|
||
def pytest_collection_modifyitems(config, items): | ||
if not config.getoption("--run-slow"): | ||
skipper = pytest.mark.skip(reason="Only run when --run-slow is given") | ||
for item in items: | ||
if "slow" in item.keywords: | ||
item.add_marker(skipper) | ||
|
||
|
||
@pytest.fixture(scope='session', autouse=True) | ||
|
@@ -22,7 +31,7 @@ def skip_ftp(request): | |
def setup_cfg(skip_ftp): | ||
logger.info("setting up config") | ||
with TemporaryDirectory() as tempdir: | ||
config.set_base_dir(tempdir) | ||
config.base_dir = tempdir | ||
config.madrigal_user_affil = 'bu' | ||
config.madrigal_user_email = '[email protected]' | ||
config.madrigal_user_name = 'gregstarr' | ||
|
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
Oops, something went wrong.