PoonLab / Poplars

Open-source implementations of popular tools from Los Alamos National Laboratory HIV Database
GNU Affero General Public License v3.0
0 stars 0 forks source link

Remove hard-coded absolute path from unittest #10

Closed ArtPoon closed 5 years ago

ArtPoon commented 5 years ago
======================================================================
ERROR: testInputGenome (tests.test_sequence_locator.TestGetReferenceSequence)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/art/git/poplars/poplars/tests/test_sequence_locator.py", line 84, in testInputGenome
    result = get_ref_seq("siv", "/home/kwade4/PycharmProjects/Poplars/poplars/ref_genomes/siv-test-genome.fasta")
  File "/usr/local/lib/python3.6/dist-packages/poplars/sequence_locator.py", line 207, in get_ref_seq
    with open(ref_seq_path) as ref_handle:
FileNotFoundError: [Errno 2] No such file or directory: '/home/kwade4/PycharmProjects/Poplars/poplars/ref_genomes/siv-test-genome.fasta'