This is an automated email from the ASF dual-hosted git repository.

gstein pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/steve.git

commit 8d469c7ec7d71d8d43430ec68b497e6fda07ce1a
Author: Greg Stein <[email protected]>
AuthorDate: Sun Jun 5 20:28:14 2022 -0500

    use new get_metadata() and all its branches
---
 v3/test/check_coverage.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/v3/test/check_coverage.py b/v3/test/check_coverage.py
index 7266ac2..7efaf66 100755
--- a/v3/test/check_coverage.py
+++ b/v3/test/check_coverage.py
@@ -57,8 +57,12 @@ def touch_every_line():
     conn.execute('INSERT INTO METADATA'
                  f' VALUES ("{eid}", "title", NULL, NULL, NULL)')
     conn.commit()
+
+    # Ready to load up the Election and exercise it.
     e = steve.election.Election(TESTING_DB)
 
+    _ = e.get_metadata()  # while EDITABLE
+
     e.add_person('alice', 'Alice', '[email protected]')
     e.add_person('bob', None, '[email protected]')
     e.add_person('Carlos', 'Carlos', '[email protected]')
@@ -83,11 +87,13 @@ def touch_every_line():
     _ = e.get_issue('a')
 
     e.open()
+    _ = e.get_metadata()  # while OPEN
     e.add_vote('alice', 'a', 'y')
     _ = e.has_voted_upon('alice')
     _ = e.is_tampered()
 
     e.close()
+    _ = e.get_metadata()  # while CLOSED
     _ = e.gather_issue_votes('a')
 
 

Reply via email to