Skip to content

Commit

Permalink
blast: test blast databa if up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosp420 committed Jan 9, 2015
1 parent e1523c8 commit 4d448b9
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions voseq/blast_local/tests/test_blast.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import datetime
import glob
import os
import time

from django.core.management import call_command
from django.test import TestCase
Expand Down Expand Up @@ -101,24 +101,18 @@ def test_is_blast_db_up_to_date(self):
self.assertTrue(result)
self.remove_blast_data_files()

"""
def test_is_blast_db_up_to_date_false(self):
self.blast.save_seqs_to_file()
self.blast.create_blast_db()

time.sleep(5)
b = Vouchers.objects.get(code='CP100-10')
c = Sequences.objects.get(code=b, gene_code='COI')
print(">>>>c.time_edited", c.time_edited)

tomorrow = datetime.datetime.now() + datetime.timedelta(days=1)
Sequences.objects.filter(code=b, gene_code='COI').update(
notes="a random update for this record."
time_edited=tomorrow
)
c = Sequences.objects.get(code=b, gene_code='COI')
print(">>>>c.time_edited", c.time_edited)
result = self.blast.is_blast_db_up_to_date()
self.assertFalse(result)
"""

def test_do_blast(self):
self.blast.save_seqs_to_file()
Expand Down

0 comments on commit 4d448b9

Please sign in to comment.