Skip to content

Commit

Permalink
Merge pull request #93 from mr-c/post-install-testing
Browse files Browse the repository at this point in the history
post install testing
  • Loading branch information
nsoranzo authored Feb 28, 2024
2 parents cc4c069 + c697626 commit 04697a5
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 20 deletions.
2 changes: 1 addition & 1 deletion lib/bx/align/sitemask/sitemask_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from io import StringIO

import bx.align.maf
from . import cpg
from bx.align.sitemask import cpg

test_maf_cpg = """##maf version=1 scoring=none
a score=0
Expand Down
2 changes: 1 addition & 1 deletion lib/bx/binned_array_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
)
from numpy.random import random_sample as random

from .binned_array import (
from bx.binned_array import (
BinnedArray,
BinnedArrayWriter,
FileBinnedArray,
Expand Down
4 changes: 2 additions & 2 deletions lib/bx/interval_index_file_tests.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import random
from tempfile import mktemp

from . import interval_index_file
from .interval_index_file import Indexes
from bx import interval_index_file
from bx.interval_index_file import Indexes


def test_offsets():
Expand Down
10 changes: 1 addition & 9 deletions lib/bx/intervals/cluster_tests.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import os
import sys
import unittest

try:
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
except Exception:
sys.path.insert(0, os.path.dirname(os.path.abspath(".")))

# from bx.intervals.cluster import ClusterTree
from .cluster import ClusterTree
from bx.intervals.cluster import ClusterTree


class TestCluster(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion lib/bx/misc/seekbzip2_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import random
from codecs import encode

from . import seekbzip2
from bx.misc import seekbzip2

F = None
T = None
Expand Down
2 changes: 1 addition & 1 deletion lib/bx/motif/io/transfac_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from numpy import allclose

from . import transfac
from bx.motif.io import transfac

sample = """
VV TRANSFAC MATRIX TABLE, Rel.3.2 26-06-1997
Expand Down
2 changes: 1 addition & 1 deletion lib/bx/motif/pwm_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
isnan,
)

from . import pwm
from bx.motif import pwm


def test_create():
Expand Down
2 changes: 1 addition & 1 deletion lib/bx/seq/fasta_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import unittest

from . import fasta
from bx.seq import fasta

test_fa = "test_data/seq_tests/test.fa"

Expand Down
2 changes: 1 addition & 1 deletion lib/bx/seq/nib_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import unittest

from . import nib
from bx.seq import nib

test_nib = "test_data/seq_tests/test.nib"

Expand Down
2 changes: 1 addition & 1 deletion lib/bx/seq/qdna_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import unittest

from . import qdna
from bx.seq import qdna

test_qdna = "test_data/seq_tests/test.qdna"

Expand Down
2 changes: 1 addition & 1 deletion lib/bx/seq/twobit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest

from . import twobit
from bx.seq import twobit


def quick_fasta_iter(f):
Expand Down

0 comments on commit 04697a5

Please sign in to comment.