diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2021-03-25 17:33:49 +0100 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2021-03-25 17:40:01 +0100 |
commit | e74398cda112543aa6f19ed615001976ee89536f (patch) | |
tree | c2f71ebfe79346755629eb565b7a64e384ce0cec /tests | |
parent | f556ea9ad72af80c17a456bcc8248e57f2afe0e5 (diff) |
New command: get-values
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_commands.py | 13 |
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( |