about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorMunyoki Kilyungi2025-07-01 16:28:58 +0300
committerBonfaceKilz2025-07-07 07:58:31 +0300
commit926826b109f8b2143271eb44eb7e064e698bcc50 (patch)
treee7c4e9e256c62670907b795727dc89500f5ed65d /tests
parent247e461c5cafa667bf2045d730ade08bc6ccc99e (diff)
downloadgenenetwork3-926826b109f8b2143271eb44eb7e064e698bcc50.tar.gz
Fix pylint errors.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/db/test_case_attributes.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/db/test_case_attributes.py b/tests/unit/db/test_case_attributes.py
index f5f2058..d9da253 100644
--- a/tests/unit/db/test_case_attributes.py
+++ b/tests/unit/db/test_case_attributes.py
@@ -1,11 +1,11 @@
 """Test cases for gn3.db.case_attributes.py"""
 
-import pytest
 import pickle
 import tempfile
 import os
 import json
 from pathlib import Path
+import pytest
 from pytest_mock import MockFixture
 from gn3.db.case_attributes import queue_edit
 from gn3.db.case_attributes import (
@@ -18,6 +18,7 @@ from gn3.db.case_attributes import (
 
 @pytest.mark.unit_test
 def test_queue_edit(mocker: MockFixture) -> None:
+    """Test queueing an edit."""
     mock_conn = mocker.MagicMock()
     with mock_conn.cursor() as cursor:
         type(cursor).lastrowid = 28
@@ -90,6 +91,7 @@ def test_view_change_no_data(mocker: MockFixture) -> None:
     "Test no result when view_change is called"
     change_id = 28
     mock_cursor, mock_conn = mocker.MagicMock(), mocker.MagicMock()
+    mock_conn.cursor.return_value = mock_cursor
     mock_cursor.fetchone.return_value = (None, None)
     assert view_change(mock_cursor, change_id) == {}
     mock_cursor.execute.assert_called_once_with(