Beispiel #1
0
 def test_job_creates_node(self):
     run_name = 'test_job_creates_node'
     node_name = 'node.name'
     targets = {'foo@' + node_name: ''}
     new_run = Run(run_name)
     Job(dict(targets=targets), new_run)
     assert Node.get(1).name == node_name
Beispiel #2
0
 def test_job_creates_node(self):
     run_name = 'test_job_creates_node'
     node_name = 'node.name'
     targets = {'foo@' + node_name: ''}
     new_run = Run(run_name)
     Job(dict(targets=targets), new_run)
     assert Node.get(1).name == node_name
Beispiel #3
0
 def test_basic_creation(self):
     Node(name='new_node')
     models.commit()
     assert Node.get(1).name == 'new_node'
Beispiel #4
0
 def test_basic_creation(self):
     Node(name='new_node')
     models.commit()
     assert Node.get(1).name == 'new_node'