mirror of
https://github.com/enpaul/keyosk.git
synced 2025-09-18 21:51:57 +00:00
Add static analysis for tests to toxfile
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import contextlib
|
||||
import datetime
|
||||
|
||||
import _pytest
|
||||
import passlib.hash
|
||||
import pytest
|
||||
import _pytest # noreorder
|
||||
|
||||
from keyosk import config
|
||||
from keyosk import database
|
||||
@@ -30,6 +30,7 @@ def sqlite_database(tmp_path):
|
||||
sqlite_path.unlink()
|
||||
|
||||
|
||||
# pylint: disable=too-many-locals
|
||||
@pytest.fixture(scope="module")
|
||||
def demo_database(request, tmp_path_factory):
|
||||
"""Generate a database with test data in it for tests"""
|
||||
|
@@ -1,3 +1,4 @@
|
||||
# pylint: disable=unused-argument,redefined-outer-name,unused-import
|
||||
import copy
|
||||
|
||||
import passlib
|
||||
|
@@ -1,3 +1,4 @@
|
||||
# pylint: disable=unused-argument,redefined-outer-name,unused-import
|
||||
import copy
|
||||
import datetime
|
||||
|
||||
|
Reference in New Issue
Block a user