Skip to content

Commit

Permalink
Moved tests.
Browse files Browse the repository at this point in the history
Updated .travis.yml
  • Loading branch information
sdhutchins committed May 19, 2017
1 parent 00212f7 commit 3c5abed
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ python:
# command to install dependencies
install: "pip install -r requirements.txt"
# command to run tests
script: pytest
script: nosetests Tests/test_orthologs.py
Empty file removed Archive/BlastSetup/__init__.py
Empty file.
9 changes: 5 additions & 4 deletions Orthologs/Phylogenetics/PhyloTree/treeviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"""
from Bio import Phylo

def drawtree(path2tree, treeformat='newick'):
"""Import a newick formatted tree and visualize it."""
tree = Phylo.read(path2tree, treeformat)
Phylo.draw(tree)
class TreeViz(object):
def drawtree(path2tree, treeformat='newick'):
"""Import a newick formatted tree and visualize it."""
tree = Phylo.read(path2tree, treeformat)
Phylo.draw(tree)
8 changes: 6 additions & 2 deletions Orthologs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# -*- coding: utf-8 -*-

## -*- coding: utf-8 -*-
##import Align
#import BioSQL
#import CompGenetics
#import Genbank
#from Phylogenetics import Phylip, PAML, PhyML, PhyloTree
File renamed without changes.
File renamed without changes.
9 changes: 5 additions & 4 deletions Tests/test_orthologs.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from unittest import TestCase
from Orthologs.Phylogenetics import PhyloTree
from Orthologs import Align

# Under Development
class Test(TestCase):
def test_is_string(self):
s = Align.joke()
self.assertTrue(isinstance(s))
def test(self):
help(PhyloTree)
help(Align)

help(Align)
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,14 @@ def readme():
# Set up an initial configuration file
# //TODO-ROB: Set up a reconfiguration script for manual movements; Make the script append to 'init.yaml'



# Setup the package
setup(
name=name,
author = 'Datasnakes',
description="A project that will help to analyze orthologous genes.",
version='0.1.0',
long_description=readme(),
url='https://github.com/robear22890/Orthologs-Project',
url='https://github.com/datasnakes/Datasnakes-Scripts',
license='?',
classifiers=[
'Development Status :: 3 - Alpha',
Expand Down

0 comments on commit 3c5abed

Please sign in to comment.