Exemplo n.º 1
0
 def test_write_geojson_layer(self):
     with pytest.raises(ValueError):
         Collection("foo", mode='w', driver='GeoJSON', layer='foo')
Exemplo n.º 2
0
 def test_archive(self):
     with pytest.raises(TypeError):
         Collection("foo", mode='r', archive=1)
Exemplo n.º 3
0
 def test_write_numeric_layer(self):
     with pytest.raises(ValueError):
         Collection("foo", mode='w', layer=1)
Exemplo n.º 4
0
 def test_layer(self):
     with pytest.raises(TypeError):
         Collection("foo", mode='r', layer=0.5)
Exemplo n.º 5
0
 def test_vsi(self):
     with pytest.raises(TypeError):
         Collection("foo", mode='r', vsi='git')
Exemplo n.º 6
0
 def test_encoding(self):
     with pytest.raises(TypeError):
         Collection("foo", mode='r', encoding=1)
Exemplo n.º 7
0
 def test_schema(self):
     with pytest.raises(TypeError):
         Collection("foo", mode='w', driver="ESRI Shapefile", schema=1)
Exemplo n.º 8
0
 def test_driver(self):
     with pytest.raises(TypeError):
         Collection("foo", mode='w', driver=1)
Exemplo n.º 9
0
 def test_mode(self):
     with pytest.raises(TypeError):
         Collection("foo", mode=0)
Exemplo n.º 10
0
 def test_path(self):
     with pytest.raises(TypeError):
         Collection(0)