summaryrefslogtreecommitdiff
path: root/tests/test_row_at.py
diff options
context:
space:
mode:
authorHombreLaser <buran@silosneeded.com>2024-03-13 19:53:36 -0600
committerHombreLaser <buran@silosneeded.com>2024-03-13 19:53:36 -0600
commitd4d62c6efb5f22c4a935a0a5feb6ec13b7c82f2b (patch)
tree997eebbf9918b53478226a361c6b96141064fc3b /tests/test_row_at.py
parent2a14f9f516316bfae2c69ce178262c4554f4b9fe (diff)
Add missing tests
Diffstat (limited to 'tests/test_row_at.py')
-rw-r--r--tests/test_row_at.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/test_row_at.py b/tests/test_row_at.py
index 6b7c379..82e3270 100644
--- a/tests/test_row_at.py
+++ b/tests/test_row_at.py
@@ -1,6 +1,15 @@
+from src.program import Program
+
+
def test_row_at(capsys, row_at_program):
row_at_program.run()
assert capsys.readouterr()[0].startswith(
"('1919', 'Ten Days that Shook the World', 'John Reed')"
- ) \ No newline at end of file
+ )
+
+
+def test_out_of_bounds_row_at(capsys):
+ Program(args=['-f', './tests/test_table.csv', '-c', 'row-at', '5']).run()
+
+ assert capsys.readouterr()[0] == 'None\n' \ No newline at end of file