File: test_tibanna.py

package info (click to toggle)
snakemake 7.32.4-7
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 25,840 kB
  • sloc: python: 32,846; javascript: 1,287; makefile: 247; sh: 163; ansic: 57; lisp: 9
file content (24 lines) | stat: -rw-r--r-- 657 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import os
import sys

sys.path.insert(0, os.path.dirname(__file__))

from common import *


# run tibanna test before any moto-related tests because they apparently render AWS environment variables invalid or uneffective.
def test_tibanna():
    workdir = dpath("test_tibanna")
    subprocess.check_call(["python3", "cleanup.py"], cwd=workdir)

    os.environ["TEST_ENVVAR1"] = "test"
    os.environ["TEST_ENVVAR2"] = "test"

    run(
        workdir,
        use_conda=True,
        default_remote_prefix="snakemake-tibanna-test/1",
        tibanna=True,
        tibanna_sfn="tibanna_unicorn_johannes",
        tibanna_config=["spot_instance=true"],
    )