[fiona] 04/19: Update test to changed name fio --> fiona

Johan Van de Wauw johanvdw-guest at moszumanska.debian.org
Fri Nov 28 23:54:18 UTC 2014


This is an automated email from the git hooks/post-receive script.

johanvdw-guest pushed a commit to branch master
in repository fiona.

commit 6a17020dcabe59d95dad9410a5db9ab80dd17540
Author: Johan Van de Wauw <johan.vandewauw at gmail.com>
Date:   Wed Nov 5 18:22:38 2014 +0100

    Update test to changed name fio --> fiona
---
 ...003-Update-test-to-changed-name-fio-fiona.patch | 74 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 75 insertions(+)

diff --git a/debian/patches/0003-Update-test-to-changed-name-fio-fiona.patch b/debian/patches/0003-Update-test-to-changed-name-fio-fiona.patch
new file mode 100644
index 0000000..d15609c
--- /dev/null
+++ b/debian/patches/0003-Update-test-to-changed-name-fio-fiona.patch
@@ -0,0 +1,74 @@
+From: Johan Van de Wauw <johan.vandewauw at gmail.com>
+Date: Wed, 5 Nov 2014 18:22:07 +0100
+Subject: Update test to changed name fio -> fiona
+
+---
+ tests/test_cli.py | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/tests/test_cli.py b/tests/test_cli.py
+index 682cd61..2d01451 100644
+--- a/tests/test_cli.py
++++ b/tests/test_cli.py
+@@ -4,7 +4,7 @@ import subprocess
+ 
+ def test_cli_info_json():
+     result = subprocess.check_output(
+-        'fio info docs/data/test_uk.shp',
++        'fiona info docs/data/test_uk.shp',
+         shell=True)
+     text = result.decode('utf-8').strip()
+     assert json.loads(text)['count'] == 48
+@@ -12,14 +12,14 @@ def test_cli_info_json():
+ 
+ def test_cli_info_count():
+     result = subprocess.check_output(
+-        'fio info docs/data/test_uk.shp --count',
++        'fiona info docs/data/test_uk.shp --count',
+         shell=True)
+     assert result.decode('utf-8').strip() == '48'
+ 
+ 
+ def test_cli_info_bounds():
+     result = subprocess.check_output(
+-        'fio info docs/data/test_uk.shp --bounds',
++        'fiona info docs/data/test_uk.shp --bounds',
+         shell=True)
+     assert result.decode('utf-8').strip() == (
+         '-8.621389 49.911659 1.749444 60.844444')
+@@ -27,7 +27,7 @@ def test_cli_info_bounds():
+ 
+ def test_cli_cat():
+     result = subprocess.check_output(
+-        'fio cat docs/data/test_uk.shp docs/data/test_uk.shp',
++        'fiona cat docs/data/test_uk.shp docs/data/test_uk.shp',
+         shell=True)
+     records = result.decode('utf-8').strip().split('\n')
+     assert len(records) == 96
+@@ -37,7 +37,7 @@ def test_cli_cat():
+ 
+ def test_cli_cat_rs():
+     result = subprocess.check_output(
+-        'fio cat docs/data/test_uk.shp docs/data/test_uk.shp '
++        'fiona cat docs/data/test_uk.shp docs/data/test_uk.shp '
+         '--indent 2 --x-json-seq-rs',
+         shell=True)
+     texts = result.decode('utf-8').split(u'\x1e')
+@@ -57,7 +57,7 @@ def test_cli_collect():
+             'type': 'Point',
+             'coordinates': [0.0, 0.0] }}
+     result = subprocess.check_output(
+-        "echo '%s' | fio collect" % json.dumps(feature),
++        "echo '%s' | fiona collect" % json.dumps(feature),
+         shell=True)
+     collection = json.loads(result.decode('utf-8'))
+     assert len(collection['features']) == 1
+@@ -72,7 +72,7 @@ def test_cli_collect_rs():
+             'type': 'Point',
+             'coordinates': [0.0, 0.0] }}
+     result = subprocess.check_output(
+-        "printf '\036%s\n\036%s' | fio collect" % (
++        "printf '\036%s\n\036%s' | fiona collect" % (
+             json.dumps(feature, indent=2), json.dumps(feature, indent=2)),
+         shell=True)
+     collection = json.loads(result.decode('utf-8'))
diff --git a/debian/patches/series b/debian/patches/series
index 18ba74d..c5cda9f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0001-Rename-fio-command-to-fiona-to-avoid-name-clash.patch
 0002-Fix-cython-compilation-error.patch
+0003-Update-test-to-changed-name-fio-fiona.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/fiona.git



More information about the Pkg-grass-devel mailing list