

def test_creates_child_no_type(self):
    child = {
        'data': {
            'attributes': {
                'title': 'child',
                'description': 'this is a child project',
                'category': 'project',
            },
        },
    }
    res = self.app.post_json_api(self.url, res, auth=self.user.auth, expect_errors=True)
    assert_equal(res.status_code, 400)
    assert_equal(res.json['errors'][0]['detail'], 'This field may not be null.')
    assert_equal(res.json['errors'][0]['source']['pointer'], '/data/type')

dataset/ETHPy150Open CenterForOpenScience/osf.io/api_tests/nodes/views/test_node_children_list.py TestNodeChildCreate.test_creates_child_no_type/VarMisuse@57/89 `child`->`res`