File: test_cli.py

package info (click to toggle)
python-gffutils 0.13-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,164 kB
  • sloc: python: 5,557; makefile: 62; sh: 13
file content (18 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import subprocess as sp
import gffutils
from gffutils import example_filename, create, feature


def test_issue_224():
    fn = gffutils.example_filename("FBgn0031208.gtf")
    sp.run(["gffutils-cli", "create", "--force", fn])
    p = sp.run(
        ["gffutils-cli", "children", fn + ".db", "FBgn0031208"],
        check=True,
        capture_output=True,
        universal_newlines=True,
    )
    assert (
        p.stdout.splitlines()[0]
        == 'chr2L\tgffutils_derived\tgene\t7529\t9484\t.\t+\t.\tgene_id "FBgn0031208";'
    )