Exemplo n.º 1
0
    def test_sa_term26_mapping(self):
        network = Network(resolver)
        for obj in csv_mapper(self.csvobj, self.mapping, resolver=resolver):
            # pprint(obj)
            network.add(obj)

        d3_data = network.to_dict()
        assert 'nodes' in d3_data, d3_data.keys()
        assert 'links' in d3_data, d3_data.keys()
        assert len(d3_data['links']), d3_data['links']
Exemplo n.º 2
0
    def test_sa_term26_mapping(self):
        network = Network(resolver)
        for obj in csv_mapper(self.csvobj, self.mapping, resolver=resolver):
            # pprint(obj)
            network.add(obj)

        d3_data = network.to_dict()
        assert 'nodes' in d3_data, d3_data.keys()
        assert 'links' in d3_data, d3_data.keys()
        assert len(d3_data['links']), d3_data['links']
Exemplo n.º 3
0
 def test_require_schema(self):
     network = Network(resolver)
     network.add({})
Exemplo n.º 4
0
 def test_require_schema(self):
     network = Network(resolver)
     network.add({})