CYCAMORE
Public Member Functions | Public Attributes | List of all members
test_regression.TestRegression Class Reference
Inheritance diagram for test_regression.TestRegression:
Inheritance graph
[legend]
Collaboration diagram for test_regression.TestRegression:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, args, kwargs)
 
def find_ids (self, spec, a, spec_col="Spec", id_col="AgentId")
 
def setUp (self)
 
def tearDown (self)
 
def to_ary (self, a, k)
 

Public Attributes

 agent_entry
 
 agent_exit
 
 compositions
 
 conn
 
 cur
 
 enrichments
 
 ext
 
 inf
 
 info
 
 outf
 
 resources
 
 rsrc_qtys
 
 transactions
 

Detailed Description

A base class for all regression tests. A derived class is required for
each new input file to be tested. Each derived class *must* declare an `inf`
member in their `__init__` function that points to the input file to be
tested, e.g., `self.inf_ = ./path/to/my/input_file.xml. See below for
examples.

Definition at line 31 of file test_regression.py.

Constructor & Destructor Documentation

◆ __init__()

def test_regression.TestRegression.__init__ (   self,
  args,
  kwargs 
)

Definition at line 38 of file test_regression.py.

Member Function Documentation

◆ find_ids()

def test_regression.TestRegression.find_ids (   self,
  spec,
  a,
  spec_col = "Spec",
  id_col = "AgentId" 
)

Definition at line 89 of file test_regression.py.

References test_regression.TestRegression.ext, and helper.find_ids().

Referenced by test_regression._PhysorSources.setUp(), and test_regression.TestGrowth.test_deployment().

Here is the call graph for this function:

◆ setUp()

def test_regression.TestRegression.setUp (   self)

Definition at line 43 of file test_regression.py.

References test_regression.TestRegression.ext, test_regression.TestRegression.inf, test_regression.TestRegression.outf, and helper.run_cyclus().

Here is the call graph for this function:

◆ tearDown()

def test_regression.TestRegression.tearDown (   self)

◆ to_ary()

def test_regression.TestRegression.to_ary (   self,
  a,
  k 
)

Member Data Documentation

◆ agent_entry

test_regression.TestRegression.agent_entry

◆ agent_exit

test_regression.TestRegression.agent_exit

Definition at line 54 of file test_regression.py.

◆ compositions

test_regression.TestRegression.compositions

Definition at line 62 of file test_regression.py.

◆ conn

test_regression.TestRegression.conn

Definition at line 67 of file test_regression.py.

Referenced by test_regression.TestRegression.tearDown().

◆ cur

test_regression.TestRegression.cur

Definition at line 69 of file test_regression.py.

◆ enrichments

test_regression.TestRegression.enrichments

◆ ext

test_regression.TestRegression.ext

◆ inf

test_regression.TestRegression.inf

Definition at line 41 of file test_regression.py.

Referenced by test_regression.TestRegression.setUp().

◆ info

test_regression.TestRegression.info

Definition at line 63 of file test_regression.py.

◆ outf

test_regression.TestRegression.outf

◆ resources

test_regression.TestRegression.resources

Definition at line 60 of file test_regression.py.

◆ rsrc_qtys

test_regression.TestRegression.rsrc_qtys

◆ transactions

test_regression.TestRegression.transactions

The documentation for this class was generated from the following file: