aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/db/__init__.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-07-12 15:46:53 +0300
committerFrederick Muriuki Muriithi2023-07-12 15:46:53 +0300
commite926411480c69c0c420fd3c781664120bfd8e21b (patch)
treeecd1637ba28dba2da971a3027b492a21ced3c9b0 /tests/unit/db/__init__.py
parentf920f9ad6d74648a0f572f3e937cfe1ea6578b3f (diff)
downloadgenenetwork3-e926411480c69c0c420fd3c781664120bfd8e21b.tar.gz
Bug: Set the `data_exists` variable within the context manager
The `cursor.fetchone()` call that was used as the condition to the `if` was called outside of the context manager, and therefore would always give a non-truthy value at best and an inconsistent result at worst. This commit gets the value before the context manager has exited and stores it for later use.
Diffstat (limited to 'tests/unit/db/__init__.py')
0 files changed, 0 insertions, 0 deletions