def pysuite():
    from vnf.testing import getDeploymentInfo
    info = getDeploymentInfo()
    fixtures = info.selenium_test_fixtures
    return makePySuite(TestCaseBase, fixtures)
Beispiel #2
0
#                      (C) 2006-2010  All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
'''
This provides a base class for test application.

XXX:
This could be merged with the main application of vnf.

'''

from vnf.testing import getDeploymentInfo
deploymentinfo = getDeploymentInfo()

# application
from luban.applications.UIApp import UIApp as base


class Application(base):
    class Inventory(base.Inventory):

        import pyre.inventory

    def main(self, testFacility, *args, **kwds):
        self.testFacility = testFacility
        return

    def chroot(self):
def pysuite():
    from vnf.testing import getDeploymentInfo
    info = getDeploymentInfo()
    fixtures = info.selenium_test_fixtures
    return makePySuite(TestCaseBase, fixtures)
 2. there is a bvk_getdos record in the db that has finished. and in the data directory
    for the job associated with the bvk_getdos computation, there is a data file "DOS".
 3. There is a table "phonondoses"
 4. This directory is writable.

The test cases here will try to do things like retrieve results in the job directory
to local data directory
'''


skip = True # temporarily let auto testing to skip over this test.


#
from vnf.testing import getDeploymentInfo
deploymentinfo = getDeploymentInfo()
dbname = deploymentinfo.dbname


#
dataroot = deploymentinfo.dataroot


# job id.
jobid = "5WW9U3SR" 
# the computation is of type bvk_getdos


# result holder
from vnf.dom.material_simulations.PhononDOS import PhononDOSTable as ResultHolder
result_holder_id = 'test-computationresultretriever'