Unverified Commit 9c15603f authored by Robyn Speer's avatar Robyn Speer Committed by GitHub
Browse files

Merge pull request #271 from commonsense/fix-quick-test

modify test db creation fixture to work with the --quick flag
parents 8475025c 2681afd9
......@@ -27,9 +27,10 @@ def test_env_variables():
return env_variables
@pytest.fixture(scope='session')
def create_test_db():
subprocess.run(["dropdb", "conceptnet-test", "--if-exists"])
subprocess.run(["createdb", "conceptnet-test"])
def create_test_db(is_quick_run):
if not is_quick_run:
subprocess.run(["dropdb", "conceptnet-test", "--if-exists"])
subprocess.run(["createdb", "conceptnet-test"])
def run_snakemake(env_variables, options=('-j', '4'), targets=()):
cmd_args = ["snakemake"] + list(options) + list(targets)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment