# Path: targetexplorer/flaskapp/models.py
# class CrawlData(db.Model):
# class DateStamps(db.Model):
# class DBEntry(db.Model):
# class UniProtEntry(db.Model):
# class UniProtGeneName(db.Model):
# class UniProtIsoform(db.Model):
# class UniProtIsoformNote(db.Model):
# class UniProtDomain(db.Model):
# class UniProtFunction(db.Model):
# class UniProtDiseaseAssociation(db.Model):
# class UniProtSubcellularLocation(db.Model):
# class PDBEntry(db.Model):
# class PDBChain(db.Model):
# class PDBExpressionData(db.Model):
# class NCBIGeneEntry(db.Model):
# class NCBIGenePublication(db.Model):
# class EnsemblGene(db.Model):
# class EnsemblTranscript(db.Model):
# class EnsemblProtein(db.Model):
# class HGNCEntry(db.Model):
# class BindingDBBioassay(db.Model):
# class CbioportalCase(db.Model):
# class CbioportalMutation(db.Model):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
# 
# Path: targetexplorer/utils.py
# class DatabaseException(Exception):
#     pass


from targetexplorer.flaskapp import models
from targetexplorer.tests.utils import projecttest_context, expected_failure
from targetexplorer.commit import Commit
from nose.plugins.attrib import attr
from targetexplorer.utils import DatabaseException


@attr('unit')
def test_commit():
    with projecttest_context(set_up_project_stage='cbioportal'):
        Commit()
        crawl_data_row = models.CrawlData.query.first()
        assert crawl_data_row.safe_crawl_number == 0



# Path: targetexplorer/flaskapp/models.py
# class CrawlData(db.Model):
# class DateStamps(db.Model):
# class DBEntry(db.Model):
# class UniProtEntry(db.Model):
# class UniProtGeneName(db.Model):
# class UniProtIsoform(db.Model):
# class UniProtIsoformNote(db.Model):
# class UniProtDomain(db.Model):
# class UniProtFunction(db.Model):
# class UniProtDiseaseAssociation(db.Model):
# class UniProtSubcellularLocation(db.Model):
# class PDBEntry(db.Model):
# class PDBChain(db.Model):
# class PDBExpressionData(db.Model):
# class NCBIGeneEntry(db.Model):
# class NCBIGenePublication(db.Model):
# class EnsemblGene(db.Model):
# class EnsemblTranscript(db.Model):
# class EnsemblProtein(db.Model):
# class HGNCEntry(db.Model):
# class BindingDBBioassay(db.Model):
# class CbioportalCase(db.Model):
# class CbioportalMutation(db.Model):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
#     def __repr__(self):
# 
# Path: targetexplorer/utils.py
# class DatabaseException(Exception):
#     pass


# Path: targetexplorer/tests/test_commit.py
from targetexplorer.flaskapp import models
from targetexplorer.tests.utils import projecttest_context, expected_failure
from targetexplorer.commit import Commit
from nose.plugins.attrib import attr
from targetexplorer.utils import DatabaseException



@attr('unit')
def test_commit():
    with projecttest_context(set_up_project_stage='cbioportal'):
        Commit()
        crawl_data_row = models.CrawlData.query.first()
        assert crawl_data_row.safe_crawl_number == 0



@attr('unit')