summaryrefslogtreecommitdiff
path: root/tests/test_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r--tests/test_commands.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 92b603f..99cc649 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -121,6 +121,19 @@ class testCommands(unittest.TestCase):
)
self.assertEqual(streams['stderr'].getvalue(), '')
+ def test_get_values(self):
+ args = {
+ 'collection': self.tmpdir.name,
+ 'git': True,
+ 'template': False,
+ 'query': '*',
+ 'field': 'position',
+ }
+ streams = self._run_command(command.GetValues(), args)
+ print(streams['stdout'].getvalue())
+ self.assertIn('somewhere: 2', streams['stdout'].getvalue())
+ self.assertEqual(streams['stderr'].getvalue(), '')
+
def test_export(self):
dest_tmpdir = tempfile.TemporaryDirectory()
utils.copytree(