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
def test_basic_creation(self): Node(name='new_node') models.commit() assert Node.get(1).name == 'new_node'