Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

ModelSEED TestingHelpers

Scott Devoid edited this page May 4, 2012 · 1 revision

getDebugFIGMODEL

Returns a debug version of FIGMODEL with proper configuration setup. Accepts a hash ref of arguments that you would like to pass into the FIGMODEL constructor. If you would like to modify the default debug config, call getDebugFIGMODELConfig()

getTestConfig

Produces a clean test configuration containing data for running test scripts. If the test configuration data doesn't already exist (at ${"database root directory"}/TestData/ this function automatically downloads the data from the server.

This test data is then copied to temporary directories and the configuration files are generated pointing to that temporary location. In this way each call to getTestConfig will produce a clean dataset.

Returns a hash of configuration data to be passed to a FIGMODEL using the FIGMODEL->new({ configFiles => [hash] }); argument.

Data in Test Database

Currently we produce: - A ModelDB database with default data plus - Two users "alice" and "bob" - Two copies of the "Seed83333.1" model owned by master and "alice"